Commit graph

159544 commits

Author SHA1 Message Date
Paul Gofman 1120a1cb29 crypt32: Support CRYPT_STRING_HEX in CryptStringToBinary(). 2022-09-21 21:26:37 +02:00
Paul Gofman a79ec1c584 crypt32: Support CRYPT_STRING_HEXRAW in CryptBinaryToStringA(). 2022-09-21 21:26:37 +02:00
Zebediah Figura cd7a9386ec d3d10core/tests: Ignore random WARP failures in test_pipeline_statistics_query.
This is the d3d10core counterpart to d741742e32.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
2022-09-21 21:26:05 +02:00
Zebediah Figura d89a017056 d3d11/tests: Use a pixel shader that consumes SV_Position in test_pipeline_statistics_query().
Some drivers (AMD Radeon RX 6700 XT, with radeonsi from Mesa 22.2.0-rc3) emit
less than one invocation per pixel, presumably because they detect that the
shader control flow is uniform for all pixels. Having the control flow depend on
SV_Position avoids this test failure.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
2022-09-21 21:26:03 +02:00
Zebediah Figura 34bd0dd070 d3d10core/tests: Use a pixel shader that consumes SV_Position in test_pipeline_statistics_query().
Some drivers (AMD Radeon RX 6700 XT, with radeonsi from Mesa 22.2.0-rc3) emit
less than one invocation per pixel, presumably because they detect that the
shader control flow is uniform for all pixels. Having the control flow depend on
SV_Position avoids this test failure.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
2022-09-21 21:26:01 +02:00
André Zwing b07e06e297 ntdll: Fix ARM vs AMD64 typo. 2022-09-20 20:53:27 +02:00
David Kahurani 903c91fc60 win32u: Use allocator mechanism to allocate DC attributes.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53645
2022-09-20 20:53:17 +02:00
Hans Leidekker fa058bc3f0 adsldp/tests: Get rid of workarounds for Windows XP. 2022-09-20 20:53:10 +02:00
Hans Leidekker 4f9e80de0f adsldp/tests: Limit the number of search results. 2022-09-20 20:53:10 +02:00
Hans Leidekker 2281b06766 adsldp: Implement ADS_SEARCHPREF_SIZE_LIMIT. 2022-09-20 20:53:10 +02:00
Jacek Caban 9128587e4b winemac: Implement wow64 thunks. 2022-09-20 20:52:58 +02:00
Jacek Caban 1b69aae3f4 winemac: Use platform-independent types for user callback params. 2022-09-20 20:52:58 +02:00
Jacek Caban 4467589a4a win32u: Introduce NtUserSendDriverMessage.
And use it in display drivers.
2022-09-20 20:52:56 +02:00
Nikolay Sivov 5e0acc095d cryptowinrt: Implement GenerateRandomNumber().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:28:38 +02:00
Nikolay Sivov 09cb9cd1c6 cryptowinrt: Add a stub module.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:28:35 +02:00
Nikolay Sivov 307eae20a6 include: Add windows.security.cryptography.idl.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:28:35 +02:00
Zebediah Figura d0f34c232a ntdll: Add a fast path for NtDeviceIoControlFile(INVALID_HANDLE_VALUE).
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53706
2022-09-20 09:28:32 +02:00
Connor McAdams 958bba92d2 uiautomationcore: Add tests for UiaNodeFromHandle.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:30 +02:00
Connor McAdams 8642e96c19 uiautomationcore: Create UI Automation client thread.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:30 +02:00
Connor McAdams 41dd89a8e4 uiautomationcore: Implement UiaNodeFromHandle.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:29 +02:00
Connor McAdams 858596bbd5 uiautomationcore: Shutdown provider thread when all returned nodes are released.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:29 +02:00
Connor McAdams d7c95765d0 uiautomationcore: Increment module reference count when starting provider thread.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:29 +02:00
Connor McAdams 02b87a4002 uiautomationcore: Implement UiaReturnRawElementProvider.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:29 +02:00
Rémi Bernon 7ceac9e4c9 winegstreamer: Merge wm_syncreader.c into wm_reader.c. 2022-09-20 09:26:25 +02:00
Rémi Bernon 1dd11e63c0 winegstreamer: Aggregate a IWMSyncReader in the async reader.
Instead of an internal struct wm_reader.
2022-09-20 09:26:23 +02:00
Rémi Bernon 131ada052a winegstreamer: Get rid of the wm_reader_ops callbacks.
Controlling lifetime from the sync / async reader side.
2022-09-20 09:26:21 +02:00
Nikolay Sivov 0f25fadb14 threadpoolwinrt: Add initial implementation of RunAsync.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:26:11 +02:00
Nikolay Sivov 511be2e86d threadpoolwinrt: Add a stub module.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:26:08 +02:00
Nikolay Sivov 42e21bc5df include: Add windows.system.threading.idl.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:26:08 +02:00
Jinoh Kang dce7a61fa4 msvcp90: Use atomic write for releasing threadsafe_queue spin lock.
This fixes data race in ARM/ARM64 platforms, and prevents potential
memory access reordering by the compiler.
2022-09-20 09:24:38 +02:00
Jinoh Kang 94512ecc12 concrt140: Use atomic write for releasing threadsafe_queue spin lock.
This fixes data race in ARM/ARM64 platforms, and prevents potential
memory access reordering by the compiler.
2022-09-20 09:24:37 +02:00
Etaash Mathamsetty d1e23696df ntoskrnl: KeSetTargetProcessorDpcEx stub.
Required by mrac anti cheat.
2022-09-20 09:22:47 +02:00
Alistair Leslie-Hughes df72f9a870 msdasql: Implement IColumnsRowset GetAvailableColumns.
The functions returns a series of custom columns to make a row unique.
For us, it's safe to return no extra columns at this stage.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2022-09-20 09:22:25 +02:00
Alistair Leslie-Hughes ebf0070899 msdasql: Implement ICommandProperties SetProperties.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2022-09-20 09:22:25 +02:00
Alistair Leslie-Hughes 323355a848 msdasql: Implement ICommandProperties GetProperties.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2022-09-20 09:22:23 +02:00
Akihiro Sagawa cb0e4f5f4f user32: Fix a memory allocation strategy.
Otherwise, the function allocates a heap memory when prev_size is enough.
What is worse is that it returns the buffer untouched if the prev_size
is insufficient.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53703
2022-09-19 20:13:12 +02:00
Piotr Caban 548a6afccb msvcr100: Fix crash when setting scheduler in schedule_task_proc.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53672
2022-09-19 20:12:51 +02:00
Piotr Caban bd43bb5304 msvcp90: Fix indentation in concurrent_vector_alloc_segment function. 2022-09-19 20:12:43 +02:00
Shaun Ren 6d2a9af43b msvcrt: Fix strncmp return value.
Some programs, such as Final Fantasy IV (3D remake), expect strncmp
to return exactly +/-1 when the strings are not equal.

Signed-off-by: Shaun Ren <sren@codeweavers.com>
2022-09-19 20:12:32 +02:00
Gijs Vermeulen 1b3f61d7a5 ntdll: Add RtlDosPathNameToRelativeNtPathName_U.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53700
2022-09-19 20:12:02 +02:00
Nikolay Sivov 1ceba3533e kernelbase: Add MapViewOfFileFromApp().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-19 20:11:37 +02:00
Nikolay Sivov 3ede82e2a8 kernelbase: Add CreateFileMappingFromApp().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-19 20:11:36 +02:00
Nikolay Sivov 40d0e55d4c kernelbase: Add OpenFileMappingFromApp().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-19 20:11:35 +02:00
Alistair Leslie-Hughes b114b2c9eb wininet: Use standard HTTP_ADD Flags. 2022-09-19 20:10:47 +02:00
Eric Pouech 4bdf92cb7f jscript: Fix GCC 12.2 warning.
When initializing a jsstr_inline_t with a len < 3, the size passed
for the allocation is smaller then the size of the structure
(as the later is rounded up to the alignment = 4 bytes).

GCC 12.2 complains about this when dereferencing the pointer to
the structure as the size passed for allocation is smaller than the
size of the structure.

The warning is fixed by using flexible array member in
jsstr_inline_t. Given the rounding behavior in memory allocation, this
should not change the size of allocated blocks.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-19 20:10:36 +02:00
Alistair Leslie-Hughes 5308c71cfd oledb32/tests: Free returned property set memory.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36312
2022-09-19 20:10:26 +02:00
Aurimas Fišeras e04a406a0a po: Update Lithuanian translation. 2022-09-19 20:10:13 +02:00
Zebediah Figura f5b9213725 ntdll: Do not check for malloc() failure in get_initial_environment.
This is called early in process startup; malloc() should definitely never fail here.

This fixes an uninitialized variable warning with gcc 12.2:

In function ‘build_initial_params’,
    inlined from ‘init_startup_info’ at ../wine/dlls/ntdll/unix/env.c:2004:18:
../wine/dlls/ntdll/unix/env.c:1910:12: error: ‘env_pos’ may be used uninitialized [-Werror=maybe-uninitialized]
 1910 |     path = get_env_var( env, env_pos, pathW, 4 );
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../wine/dlls/ntdll/unix/env.c: In function ‘init_startup_info’:
../wine/dlls/ntdll/unix/env.c:1903:18: note: ‘env_pos’ declared here
 1903 |     SIZE_T size, env_pos, env_size;
      |                  ^~~~~~~
2022-09-16 21:08:28 +02:00
Rémi Bernon ed0d100ec9 winegstreamer: Check for already opened stream in wm_reader_open*. 2022-09-16 21:08:20 +02:00
Rémi Bernon 359258560e winegstreamer: Use a dedicated CS to serialize async reader commands. 2022-09-16 21:08:20 +02:00