Commit Graph

157101 Commits

Author SHA1 Message Date
Jactry Zeng 3f7c08096a include: Add MIL/DWM HRESULT codes.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Brendan Shanks 7e973421d1 include: Add WINE_ALLOC_SIZE attribute to MmAllocate functions.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Brendan Shanks 09704a155e include: Add WINE_ALLOC_SIZE attribute to ExAllocatePool functions.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Brendan Shanks 26297e7a2f include: Add WINE_ALLOC_SIZE attribute to RtlReAllocateHeap().
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Brendan Shanks c392ac8678 include: Add WINE_ALLOC_SIZE attribute to CoTaskMemRealloc().
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Rémi Bernon 1c873e8719 ntdll: Split RtlSizeHeap to a separate heap_size helper.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Rémi Bernon 8dd04c77cb ntdll: Split RtlReAllocateHeap to a separate heap_reallocate helper.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Rémi Bernon e2258ef559 ntdll: Split RtlFreeHeap to a separate heap_free helper.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Rémi Bernon dadb1fa72f ntdll: Split RtlAllocateHeap to a separate heap_allocate helper.
Factoring out locking and status handling.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Rémi Bernon 80a1155ca8 ntdll: Split HEAP_IsRealArena to heap_validate and heap_validate_ptr.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Rémi Bernon e264831804 ntdll: Lock heap critical section outside of HEAP_IsRealArena.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Alistair Leslie-Hughes 5582c4d6fb d3drm: Support IDirect3D3 when creating device.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=39346
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Eric Pouech f8733138bd capi2032: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:34:17 +02:00
Nikolay Sivov e3f226fde0 mfplat: Allow NULL size pointer in IMFAttributes::GetAllocatedBlob().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:34:17 +02:00
Nikolay Sivov 1336f5966f kernelbase/tests: Close mapping in MapViewOfFile3 test.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52970
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:34:17 +02:00
Zebediah Figura 4e5eaba51f wineusb.sys: Expose composite device interfaces.
On Windows this is the job of usbccgp.sys, a separate driver that layers on top
of the base USB driver. While we could take this approach as well, implementing
usbccgp is a lot more work, whereas interface support is effectively built into
libusb.

This patch helps us get closer to installing and running the Hauppauge cx231xx
drivers.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:34:17 +02:00
Zebediah Figura c3bdb5d156 wineusb.sys: Trace the type in query_id().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:34:17 +02:00
Zebediah Figura 9f83526821 wineusb.sys: Avoid hard-coding ID string lengths.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:34:17 +02:00
Zebediah Figura 2cb0cde3e5 wineusb.sys: Mark transfer_cb() as LIBUSB_CALL.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:34:17 +02:00
Zebediah Figura c111332d1b xslt: Use win32config.h from the correct directory.
This also fixes the build with external libxml2 but bundled libxslt.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:34:17 +02:00
Brendan Shanks 95024c3155 ntdll/tests: Fix thread test failure on Windows.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52892
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 22:29:48 +02:00
Anton Baskanov 2567ff497d winegstreamer: Set sample timestamps in MPEG audio decoder.
Signed-off-by: Anton Baskanov <baskanov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 19:33:23 +02:00
Anton Baskanov 5db4b0cff9 quartz/tests: Add tests for MPEG audio decoder sample timestamps.
Signed-off-by: Anton Baskanov <baskanov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 19:33:23 +02:00
Anton Baskanov faf6f267ae winegstreamer: Register MPEG audio decoder.
Signed-off-by: Anton Baskanov <baskanov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 19:33:23 +02:00
Anton Baskanov bae7ac48bc winegstreamer: Add IMpegAudioDecoder stub to MPEG audio decoder.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50462
Signed-off-by: Anton Baskanov <baskanov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 19:33:23 +02:00
Anton Baskanov ce4c1987a1 include: Add IMpegAudioDecoder definition.
Signed-off-by: Anton Baskanov <baskanov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 19:33:23 +02:00
Eric Pouech ae39289ca7 winecoreaudio: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 19:33:23 +02:00
Huw Davies ca1e298f52 winecoreaudio: Remove DWORDs from the midi syscall interface.
This makes it consistent with the other drivers.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 19:33:23 +02:00
Georg Lehmann d20d5d0737 winevulkan: Update to VK spec version 1.3.213.
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 19:33:22 +02:00
Georg Lehmann 3d824d11db winevulkan: Prevent infinite recursion in make_vulkan.
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 19:33:22 +02:00
Louis Lenders d5b31ea663 msvcr80: Update manifest resource.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52975
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 19:33:22 +02:00
Martin Storsjö 234f3ffa4b ntdll: Fix accidentally used 64 bit types in signal_arm.c.
These slipped through when basing the exception handling code on
signal_arm64.c.

Signed-off-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 13:54:11 +02:00
Martin Storsjö cad3668929 ntdll: Fix a typo in a log message for arm unwind data.
The function length is expressed in units of 2 bytes.

This was handled correctly in code (where it was multiplied by 2),
but was incorrect in the log message.

Signed-off-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 13:54:02 +02:00
Eric Pouech 59419244a8 winepulse.drv: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 12:15:35 +02:00
Eric Pouech c344067953 winepulse.drv: Use correct integral type.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 12:15:27 +02:00
Rémi Bernon b1306875ff windows.gaming.input: Implement stub ConstantForceEffect runtimeclass factory.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:40:43 +02:00
Rémi Bernon 922cf81c91 windows.gaming.input: Register Windows.Gaming.Input.ForceFeedback classes.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:40:41 +02:00
Rémi Bernon 5912d0fa00 windows.gaming.input: Use case insensitive compare when looking for devices.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:40:40 +02:00
Rémi Bernon c3c11d0803 windows.gaming.input: Reset spare CS pointer before deleting it.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:40:38 +02:00
Rémi Bernon d7701deddc windows.gaming.input: AddRef on the returned async handler in get_Completed.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:40:37 +02:00
Rémi Bernon 606dc246ff dinput/tests: Wait for the expected report to actually be pending.
There is a race otherwise where we try to complete a pending IRP but
because the async is writing the report from another thread we didn't
find it and instead ignored it.

Instead we need to atomically check if there was a pending IRP, and if
the queue is empty, or queue the wait.

Later, when a report is going to be marked as pending, and if there's
someone waiting for it already, we instead complete it immediately.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:40:35 +02:00
Rémi Bernon b7fa00be65 mf/tests: Update a broken IMFMediaSink_AddStreamSink result check.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:38:41 +02:00
Rémi Bernon bd527c1946 mf/tests: Tweak topology loader tests results based on the video processor presence.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:38:41 +02:00
Rémi Bernon fc2128d7fc winegstreamer: Register the video processor transform.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:38:41 +02:00
Rémi Bernon 529efbb4c9 winegstreamer: Move MFT registration list out of static scope.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:38:41 +02:00
Andrew Eikum ca10760d2e mfplat: Allow NULL length pointer in IMFAttributes::GetAllocatedString.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:38:09 +02:00
Nikolay Sivov d686663d22 evr/sample: Use explicit critical section for release handling.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:37:39 +02:00
Nikolay Sivov ce71f5a05f evr/sample: Avoid a race condition when releasing a tracked sample.
Same as b180775121.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:37:35 +02:00
Nikolay Sivov 1d7d3f58d6 mfplat/sample: Fix use-after-free of a critical section.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:37:31 +02:00
Nikolay Sivov 048e21d22e mf/session: Do not request more samples when SA sample becomes available.
The issue here is that upstream nodes get their request counters increased
while sink hasn't requested any. This causes desync between sink request
counters and upstream node counters, potentially causing sample drops and
sink waiting forever for samples that will never come. Case like that
is easy to reproduce with mfplay-based player, where occasionally
end-of-presentation condition does not trigger, but new samples are coming in.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-11 11:37:28 +02:00