Commit graph

159609 commits

Author SHA1 Message Date
Alexandre Julliard c3025582fd vkd3d: Import upstream release 1.5. 2022-09-26 21:49:54 +02:00
Alexandre Julliard c738be12e1 quartz/tests: Mark some tests as flaky. 2022-09-26 21:49:54 +02:00
Alexandre Julliard 48f99c4145 dinput/tests: Mark a mouse input test as flaky. 2022-09-26 21:49:54 +02:00
Alexandre Julliard 2742660e08 mmdevapi/tests: Mark some capture tests as flaky. 2022-09-26 21:49:54 +02:00
Alexandre Julliard 3af6ececec user32/tests: Mark some input tests as flaky. 2022-09-26 21:49:54 +02:00
Alexandre Julliard 1c31bdcad7 user32/tests: Flush window events to fix some race conditions. 2022-09-26 21:49:53 +02:00
Alexandre Julliard c19f88646a tests: Do not report flaky tests as failures by default. 2022-09-26 21:49:53 +02:00
Francois Gouget e28d24621d tests: Make sure only one thread prints traces at a time.
Some Wine tests are multi-threaded or start child processes which can
result in traces and failure messages being garbled which prevents them
from being recognized by continuous integration tools.
So printing the test messages is now serialized. Note that if a process
crashes while holding the mutex, that mutex will be abandoned and not
cause a deadlock.
2022-09-26 21:49:47 +02:00
Alistair Leslie-Hughes e8b7c1da6c odbc: SQLGetInfoW allow NULL parameter InfoValue.
MSDN states, a NULL InfoValue parameter will return as the length.
unixODBC which we currently use, handles this scenario.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53714
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2022-09-26 11:36:50 +02:00
Kevin Puetz 28e0d8ff3b oleaut32: Dereference VT_RECORD|VT_BYREF in place.
VariantCopyInd allows pvargDest == pvargSrc in order to dereference in place
To avoid confusing the source values and a partially-written destination,
wine's implementation makes a shallow copy and uses that as pSrc.

However, the call to VARIANT_CopyIRecordInfo did not use this,
leading to it copying from the zeroed-out memory it just allocated.
2022-09-26 11:36:50 +02:00
Kevin Puetz 27f417eb93 oleaut32/tests: Get_test_recordinfo shouldn't point into a specific VARIANT.
In many cases (in particular when VariantCopy has been used),
multiple VARIANT structs which contain the same type of record
will share the same instance of IRecordInfo, just adding refcounts.

RecordClear should not be aware of where the data it's clearing came from,
and certainly should not be modifying someone else's VARIANT::brecVal.
This seems to have been intended as a way to make tests more sensitive to
use-after-free, by overwriting the source pointer with NULL after
clearing the pointed-to record.

To preserve that sensitivity (if it was indeed the goal), replace the
hardcoded "0xdeadbeef is valid" check with a "validsrc" address that
get_test_recordinfo initially agrees to pretend points to a valid record,
but will stop accepting after a call to RecordClear.
2022-09-26 11:36:50 +02:00
Kevin Puetz 3265d7b542 scrrun: Fix FileSystemObject.OpenTextFile when writing to existing files.
OpenTextFile(...,ForWriting,True) should either create a new file,
or open and truncate an existing one

OpenTextFile(...,ForAppending,?,True) should write a BOM
if appending to an existing-but-empty file
2022-09-26 11:36:50 +02:00
Kevin Puetz 7b44c6895f scrrun/tests: Introduce a test_file_contents helper. 2022-09-26 11:36:50 +02:00
Zhiyi Zhang cb254cb5f4 light.msstyles: Use a darker color for inactive captions.
Fix invisible disabled menu item text in Subtitle Workshop Classic 6.1.4. The application happens to
use 0xF0F0F0 as the menu background and the inactive caption color to draw disabled menu item text.
In Light theme, the inactive caption color is very close to 0xF0F0F0, thus causing the invisible
text. So use a darker color for inactive captions to avoid this issue. The inactive caption text
color is also adjusted accordingly.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53575
2022-09-26 11:36:50 +02:00
Jacek Caban 79f67c524b winevulkan: Use generated thunks for basic debug traces. 2022-09-26 11:36:50 +02:00
Jacek Caban 9972ae6e8c winevulkan: Don't pass params struct to private thunks. 2022-09-26 11:36:49 +02:00
Jacek Caban 8d1bdb5f20 winevulkan: Merge body and body_conversion. 2022-09-26 11:36:49 +02:00
Jacek Caban a5e39c42c8 winevulkan: Separate 32-bit and 64-bit thunks implementation. 2022-09-26 11:36:49 +02:00
Kevin Puetz 0456e3c942 vbscript: Do HRESULT->VBSERROR mapping for the whole EXCEPINFO at once. 2022-09-26 11:36:49 +02:00
Kevin Puetz e19b8b635c vbscript/tests: Test throwException with Description but *not* Source.
It occurred to me to wonder whether it was really Description, Source,
or both that results in skipping the map_vbs_exception logic.

It turns out we had it right (it's just description, and it's
null-pointer and not empty string that makes the difference).

But the fact that it's not obvious still makes it a good testcase
2022-09-26 11:36:49 +02:00
Kevin Puetz db94448d97 vbscript: Only set EXCEPINFO strings for cases that map_hres translated.
Add test for E_UNEXPECTED.
2022-09-26 11:36:49 +02:00
Jacek Caban d8a03ae630 vbscript: Fix handling missing description in EXCEPINFO.
Based on patch by Kevin Puetz.
2022-09-26 11:36:49 +02:00
Aurimas Fišeras b3ec117b1d po: Update Lithuanian translation. 2022-09-26 11:36:49 +02:00
Paul Gofman fd3574a162 ntdll: Fix processor package mask in SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX structure.
Fixes a regression introduced by commit
6aa437de6a.
2022-09-26 11:36:49 +02:00
Alexandre Julliard ad26f04f69 Release 7.18. 2022-09-23 21:59:24 +02:00
Jacek Caban f664af0bca winevulkan: Use DECLSPEC_ALIGN instead of pshpack4.h. 2022-09-23 15:17:38 +02:00
Jacek Caban df8fc0b33b winevulkan: Introduce VkVariable. 2022-09-23 15:17:36 +02:00
Rémi Bernon 7384591c71 win32u: Broadcast WM_DISPLAYCHANGE message on display settings change. 2022-09-23 15:16:49 +02:00
Rémi Bernon 59a76b3a86 win32u: Lock display devices mutex in find_adapter. 2022-09-23 15:16:49 +02:00
Rémi Bernon fa32c2efc7 win32u: Use find_adapter_device_by_(name|id) helpers in find_adapter. 2022-09-23 15:16:49 +02:00
Rémi Bernon aa1e59390f win32u: Factor out display_device lookup in separate helpers. 2022-09-23 15:16:48 +02:00
Rémi Bernon 3e3beee0b4 winemac.drv: Stop using the cached_modes_mutex for get_default_bpp. 2022-09-23 15:16:48 +02:00
Rémi Bernon 981d59264f win32u: Move enumeration of available modes out of graphics drivers. 2022-09-23 15:16:48 +02:00
Rémi Bernon 6d5041744d user32/tests: Cleanup sysparams WM_DISPLAYCHANGE tests. 2022-09-23 15:16:48 +02:00
Jacob Czekalla 377481180e notepad: Show goto dialog box. 2022-09-23 15:16:48 +02:00
Rémi Bernon 54590472a7 winegstreamer: Avoid accessing NULL pointer if transform didn't provide a sample.
This can happen with asynchronous decoding, such as with the VA-API
decodebin plugin for H264.
2022-09-23 15:14:03 +02:00
Rémi Bernon 96acd9dc32 winegstreamer: Use IWMSyncReader2_SetRange in the async reader. 2022-09-23 15:13:56 +02:00
Rémi Bernon b8aa25fe4e winegstreamer: Use IWMSyncReader2_OpenStream in the async reader. 2022-09-23 15:13:56 +02:00
Rémi Bernon 1b527e8c7f winegstreamer: Use IWMSyncReader2_Open in the async reader. 2022-09-23 15:13:56 +02:00
Rémi Bernon 1fab216a3a winegstreamer: Use IWMSyncReader2_Close in the async reader. 2022-09-23 15:13:56 +02:00
Rémi Bernon 4a3f170c03 winegstreamer: Use IWMSyncReader2_SetReadStreamSamples in the async reader. 2022-09-23 15:13:56 +02:00
Rémi Bernon b69717e797 winegstreamer: Use IWMSyncReader2_GetReadStreamSamples in the async reader. 2022-09-23 15:13:56 +02:00
Rémi Bernon cbd7be3f19 winegstreamer: Implement IWMSyncReader2_GetReadStreamSamples. 2022-09-23 15:13:56 +02:00
Rémi Bernon e961e082ab winegstreamer: Query the IWMSyncReader2 interface in the async reader. 2022-09-23 15:13:56 +02:00
Rémi Bernon 2c7fdd25e0 mf/tests: Dump image samples with a BMP header and RGB data.
Allowing easier preview of NV12 / I420 images as well.
2022-09-23 15:13:46 +02:00
Rémi Bernon 0402d5b5a8 mf/tests: Rename transform frame dumps to BMP. 2022-09-23 15:13:45 +02:00
Rémi Bernon ec556ff54b mf/tests: Check all produced output IMFSample at the same time.
Keeping them in a IMFCollection.
2022-09-23 15:13:44 +02:00
Rémi Bernon 05d6bfb311 mf/tests: Factor IMFSample attributes checks in check_mf_sample. 2022-09-23 15:13:43 +02:00
Rémi Bernon 62ae3bcfe3 mf/tests: Factor IMFSample checks in a check_mf_sample helper. 2022-09-23 15:13:43 +02:00
Rémi Bernon d0478f69c3 mf/tests: Introduce a new dump_mf_sample helper. 2022-09-23 15:13:43 +02:00