Commit graph

16170 commits

Author SHA1 Message Date
Eric Pouech 495711c251 ntdll: Fix export and calling convention of RtlUlonglongByteSwap().
The RtlU*ByteSwap() family:
- has FASTCALL calling convention
- is only exported from ntdll and ntoskrnl.exe in 32bit mode
  (didn't check ARM though)

Wine's support for RtlUlonglongByteSwap() doesn't follow these constraints.
Note: in __fastcall, 64bit paramaters are passed on the stack, to
RtlUlonglongByteSwap() calling convention acts as __stdcall.

So:
- fix ntdll.spec (resp. ntoskrnl.exe.spec) to only export
  (resp. forward) RtlUlonglongByteSwap for i386
- always provide an inline implementation in winternl.h
- reimplement ntdll.RtlUlonglongByteSwap() for i386 with
  __fastcall calling convention.
- fix ntdll/tests/rtl.c to use correct calling convention.
- add test in ntdll/tests/rtl.c for inlined version.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53536
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-16 18:48:30 +01:00
Zebediah Figura 760788557c include: Add CONFIGFLAG_* definitions. 2022-12-13 12:44:51 +01:00
Alex Henrie 3ffc420440 include: Add _recalloc. 2022-12-13 12:08:29 +01:00
Eric Pouech cbde184047 wined3d: Reduce usage of long integral types in stateblock.c. 2022-12-09 17:52:25 +01:00
Eric Pouech e213d17d4c wined3d: Let sampler_states and texture_states be 2D arrays of uint32_t.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-09 17:52:25 +01:00
Jacek Caban 7fc68b7ac5 win32u: Move GetTaskmanWindow implementation from user32. 2022-12-09 17:52:25 +01:00
Jacek Caban 7d53e27cff win32u: Move SetTaskmanWindow implementation from user32. 2022-12-09 17:52:25 +01:00
Jacek Caban 592abf3379 win32u: Move GetProgmanWindow implementation from user32. 2022-12-09 17:52:25 +01:00
Jacek Caban 62852dc503 win32u: Move SetProgmanWindow implementation from user32. 2022-12-09 17:52:25 +01:00
Jacek Caban c8f1d41183 win32u: Move NtUserSetShellWindowEx implementation from user32. 2022-12-09 17:52:25 +01:00
Jacek Caban 67c3fff7cd win32u: Move GetShellWindow implementation from user32. 2022-12-09 17:52:25 +01:00
Jacek Caban ae7effbd78 win32u: Move NtUserWaitMessage implementation from user32. 2022-12-09 17:52:25 +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
Georg Lehmann 07761336d6 winevulkan: Update to VK spec version 1.3.237. 2022-12-08 20:32:10 +01:00
Hans Leidekker fa533f11e1 wofutil: Stub WofShouldCompressBinaries(). 2022-12-08 18:41:25 +01:00
Jacek Caban f5c8275329 win32u: Move NtUserGetInternalWindowPos implementation from user32. 2022-12-08 18:41:24 +01:00
Jacek Caban 026700027e win32u: Move NtUserRealChildWindowFromPoint implementation from user32. 2022-12-08 18:41:24 +01:00
Alex Henrie 926433faa3 include: Add corecrt_malloc.h. 2022-12-08 18:12:51 +01:00
Eric Pouech d73c71098e wined3d: Reduce usage of long integral types in surface.c. 2022-12-07 23:20:39 +01:00
Eric Pouech 68811881e6 wined3d: Reduce usage of long integral types in include/wined3d.h.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-07 23:20:39 +01:00
Alex Henrie 1a7efafbab include: Annotate ILC* functions with __WINE_(DEALLOC|MALLOC). 2022-12-07 23:20:39 +01:00
Alex Henrie dfb025c39e include: Annotate GdipAlloc with __WINE_(DEALLOC|MALLOC). 2022-12-07 23:20:23 +01:00
Alex Henrie 5e943f6e1a include: Annotate (Alloc|Realloc)ADs* with __WINE_(ALLOC_SIZE|DEALLOC|MALLOC). 2022-12-07 20:27:26 +01:00
Alex Henrie b90f54b4b4 include: Annotate MFHeapAlloc with __WINE_(ALLOC_SIZE|DEALLOC|MALLOC). 2022-12-07 20:27:26 +01:00
Alex Henrie 803c616f7e include: Annotate WSDAllocateLinkedMemory with __WINE_(ALLOC_SIZE|MALLOC). 2022-12-07 20:27:25 +01:00
Sven Baars f8a0716111 win32u: Pass the client instance to NtUserCreateWindowEx.
On 16-bit the module instance and client instance are different.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53568
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53646
2022-12-07 17:10:37 +01:00
Alexandre Julliard 7eef69e1fc include: Use proper dllimports for winsock functions. 2022-12-07 14:25:18 +01:00
Alexandre Julliard 55fc5c8ae8 include: Use proper dllimports for shell32 functions. 2022-12-07 14:16:10 +01:00
Alexandre Julliard 9be166e251 include: Use proper dllimports for wininet functions. 2022-12-07 14:16:10 +01:00
Alexandre Julliard 19b4814fd3 include: Use proper dllimports for winhttp functions. 2022-12-07 13:51:37 +01:00
Alexandre Julliard 83a378f1d1 include: Use proper dllimports for comdlg32 functions. 2022-12-07 13:51:37 +01:00
Alexandre Julliard c63f485379 include: Use proper dllimports for comctl32 functions. 2022-12-07 13:51:37 +01:00
Alexandre Julliard f9ee565c23 include: Use proper dllimports for crypt32 functions. 2022-12-07 13:51:37 +01:00
Alexandre Julliard 3de15569fe include: Use proper dllimports for OLE functions. 2022-12-07 13:51:37 +01:00
Alexandre Julliard 9fc9c91bf4 include: Use proper dllimports for rpcrt4 functions. 2022-12-07 13:51:37 +01:00
Alexandre Julliard 48aec00477 include: Use proper dllimports for shlwapi functions. 2022-12-07 13:51:37 +01:00
Alexandre Julliard d92b59717d include: Use proper dllimports for user32 functions. 2022-12-07 13:51:37 +01:00
Alexandre Julliard 402d50d5f9 include: Use proper dllimports for gdi32 functions. 2022-12-07 13:51:37 +01:00
Alexandre Julliard a1f0d535e0 include: Use proper dllimports for version functions. 2022-12-07 13:51:37 +01:00
Alexandre Julliard e5ac04db5c include: Use proper dllimports for lz32 functions. 2022-12-07 13:51:37 +01:00
Alexandre Julliard fcf5e8c45b include: Use proper dllimports for advapi32 functions. 2022-12-07 13:51:37 +01:00
Eric Pouech 0030023710 wined3d: Reduce usage of long integral types in palette.c.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-06 20:54:23 +01:00
Eric Pouech 286261f69e wined3d: Reduce usage of long integral types in vertexdeclaration.c.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-06 20:54:23 +01:00
Hans Leidekker 96692a2c21 bcrypt: Add support for PSS padding.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53972
2022-12-06 17:12:31 +01:00
Jacek Caban ecf31ba4c7 opengl32: Use default calling convention for WGL driver entry points. 2022-12-06 17:11:21 +01:00
Alex Henrie 1172e66e5b setupapi: Move prototypes not in Windows's setupapi.h to setupapi_private.h.
And delete the ones we don't need.
2022-12-06 17:04:50 +01:00
Alex Henrie 5d73304453 include: Annotate CreateThreadpool* with __WINE_(DEALLOC|MALLOC). 2022-12-06 17:04:50 +01:00
Hans Leidekker 6d01d01455 ncrypt: Implement NCryptSignHash().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53968
2022-12-06 17:04:50 +01:00
Hans Leidekker 07f9952a24 ncrypt: Implement NCryptExportKey().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53966
2022-12-06 17:04:50 +01:00
Alexandre Julliard 288da7c8db opengl32: Fix GLdouble type alignment on the Unix side. 2022-12-06 13:44:34 +01:00