Commit graph

161511 commits

Author SHA1 Message Date
Jacek Caban ae7effbd78 win32u: Move NtUserWaitMessage implementation from user32. 2022-12-09 17:52:25 +01:00
Ivo Ivanov 647bec85ee wineusb.sys: Add usbver, revision, busnum and portnum to PDO's instance id.
Makes the device instance id unique (at least to the bus), as
required by MS. It is also easily addressable by other drivers.
2022-12-09 17:52:25 +01:00
Ivo Ivanov a51af111ab wineusb.sys: Implement DevClass compatible id for devices with multiple interfaces.
Fixes also single interface devices not showing class, subclass,
protocol of the first interface, which is the behavior on Windows.
2022-12-09 17:52:25 +01:00
Ivo Ivanov ddb3a5ee89 wineusb.sys: Pass interface and interface_index from the event data to the usb device data. 2022-12-09 17:52:25 +01:00
Etaash Mathamsetty 5fd79c32ed ntoskrnl.exe: Use KeQueryMaximumProcessorCountEx for KeQueryMaximumProcessorCount. 2022-12-09 17:52:25 +01:00
Alex Henrie 5792785879 cmd: Use standard C functions for memory allocation. 2022-12-09 17:52:25 +01:00
Alex Henrie 702b92ad23 wsdapi: Annotate duplicate_(string|name) with __WINE_MALLOC. 2022-12-09 17:52:25 +01:00
Rémi Bernon 640e9766fd opengl32: Avoid calling functions that have not been queried yet.
The glMapBuffer and al. functions are all duplicated between EXT/ARB and
core functions, and we reduced code duplication by redirecting the EXT
to the core functions.

The internal function table is only filled as the functions are queried,
and it causes crahes when games are using the EXT functions without
querying the core function first.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53990
2022-12-09 17:52:25 +01:00
Paul Gofman 8254905b12 winhttp/tests: Test calling WinHttpReceiveResponse() recursively from various send callbacks. 2022-12-09 17:52:25 +01:00
Paul Gofman 5ac6eb434c winhttp/tests: Test WinHttpReceiveResponse() synchronous behaviour. 2022-12-09 17:52:25 +01:00
Paul Gofman 32141dfa93 winhttp: Execute receive_response() synchronously when possible. 2022-12-09 17:52:25 +01:00
Paul Gofman 8e0812ef9e winhttp: Wait for WINHTTP_CALLBACK_STATUS_SENDREQUEST_COMPLETE in request_send(). 2022-12-09 17:52:25 +01:00
Paul Gofman c43dd486be winhttp: Call receive_response() recursively instead of looping. 2022-12-09 17:52:25 +01:00
Paul Gofman 5a94affcfd winhttp: Factor out queue_receive_response(). 2022-12-09 17:52:25 +01:00
Paul Gofman aa8f97e829 winhttp: Receive server reply in send_request(). 2022-12-09 17:52:25 +01:00
Paul Gofman ee2de0b8fe winhttp: Send notifications from receive_response() directly. 2022-12-09 17:52:25 +01:00
Paul Gofman 0ed844712f winhttp: Don't refill buffer after receiving server response. 2022-12-09 17:52:25 +01:00
Paul Gofman 9caf603ad6 winhttp: Do not open connection in handle_redirect().
Let send_request() do it.
2022-12-09 17:52:25 +01:00
Alexandre Julliard 7d81575c68 apisetschema: Add a few more API sets pointing to existing dlls. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 7585376ee8 winecrt0: Include basetsd.h to get the _WIN64 definition. 2022-12-09 17:52:25 +01:00
Alexandre Julliard dae4031a28 wintab: Consistently use %I printf format for ULONG_PTR values. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 3925f42452 user.exe: Consistently use %I printf format for ULONG_PTR values. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 9f6b7eef43 shell: Consistently use %I printf format for ULONG_PTR values. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 5289d0ef4e setupx: Consistently use %I printf format for ULONG_PTR values. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 4619a45f62 ntdll: Consistently use %I printf format for ULONG_PTR values. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 73ebf69abf msvideo: Consistently use %I printf format for ULONG_PTR values. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 468d68d60d msvcrt: Consistently use %I printf format for ULONG_PTR values. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 1c5e38f3ec msacm: Consistently use %I printf format for ULONG_PTR values. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 6368a46aa0 mmsystem: Consistently use %I printf format for ULONG_PTR values. 2022-12-09 17:52:25 +01:00
Alexandre Julliard e2b8fad779 kernel32/tests: Consistently use %I printf format for ULONG_PTR values. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 8414449ce7 gdi.exe: Consistently use %I printf format for ULONG_PTR values. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 8e6317ffee commdlg: Consistently use %I printf format for ULONG_PTR values. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 42b0a3b917 configure: Enable printf format warnings for 64-bit PE builds. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 79650e403b configure: Only require frame pointer on the MSVCRT side. 2022-12-09 17:52:25 +01:00
Alexandre Julliard 4091758b78 configure: Simplify checks for functions that require an external library. 2022-12-09 17:52:25 +01:00
Eric Pouech 4eaadda479 d3dx9_36/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-09 17:52:24 +01:00
Alexandre Julliard bd0ca5103a makedep: Fix parsing of man page section. 2022-12-09 10:49:51 +01:00
Eric Pouech 60226a013b wined3d: Enable long types in texture.c. 2022-12-08 21:07:32 +01:00
Eric Pouech f46f24e7c0 wined3d: Reduce usage of long integral types in texture.c.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-08 21:07:32 +01:00
Eric Pouech 983bcd9639 wined3d: Change stencil parameter type in blitter_clear() method.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-08 21:07:32 +01:00
Eric Pouech 901c9b5997 wined3d: Get/set texture's level_count and lod as unsigned int.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-08 21:07:30 +01:00
Eric Pouech 7cab61754c wined3d: Enable long types in nvidia_texture_shader.c. 2022-12-08 21:07:14 +01:00
Eric Pouech 866cf3ce72 wined3d: Reduce usage of long integral types in nvidia_texture_shader.c. 2022-12-08 21:07:14 +01:00
Eric Pouech 4de630e97b wined3d: Enable long types in shader.c. 2022-12-08 21:06:25 +01:00
Eric Pouech e382812cda wined3d: Reduce usage of long integral types in shader.c.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-08 21:06:25 +01:00
Eric Pouech 4bf5e48c13 wined3d: Enable long types in utils.c. 2022-12-08 21:06:12 +01:00
Eric Pouech a01f00bed7 wined3d: Reduce usage of long integral types in utils.c.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-08 21:06:12 +01:00
Gabriel Ivăncescu 27ceb62ebd jscript: Create the source function's 'prototype' prop object on demand.
The 'prototype' prop of a source function is, by default, an empty object with
a 'constructor' prop pointing back to the function. Currently, every source
function is created in this fashion, which makes it a circular reference
and thus prevents it from being freed until the Garbage Collector kicks in.

The performance impact comes from the function keeping a ref to the
enclosing scope, and since the scope is being held by it, the engine will
detach the scope, believing it to be used for the time being (until the
GC cleans it). This can cause substantial performance issues for such a
common case. The FFXIV Launcher, for example, leaks a large amount of such
short-lived functions and the enclosing scopes.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-12-08 20:32:10 +01:00
Gabriel Ivăncescu d192aa102f jscript: Run the garbage collector every 30 seconds on a new object allocation.
Better heuristics can be used in the future.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-12-08 20:32:10 +01:00
Gabriel Ivăncescu 809a91b82f jscript: Implement CollectGarbage().
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-12-08 20:32:10 +01:00