Commit graph

159639 commits

Author SHA1 Message Date
Zebediah Figura e654b631f2 widl: Generate "static inline" instead of "static FORCEINLINE" for COM inline wrappers.
mingw-w64 defines __forceinline (and therefore FORCEINLINE) as
"extern __inline__ __attribute__((__always_inline__,__gnu_inline__)). This means
that COM inline wrappers specify multiple storage classes and hence cannot be
compiled.

Wine defines FORCEINLINE simply as "inline" (and uses "static" everywhere), so
this is a non-issue for Wine. However, since Wine and mingw-w64 share the source
code of widl and of most IDL headers, this patch changes the definition for both
projects.

There's no reason to force inlining here, especially since the wrappers need to
be manually enabled, and we don't need to match PSDK semantics where these
wrappers don't even exist.

In practice, use "__inline__" instead of "inline" for GNU C targets, to preserve
compatibility with C89 in mingw-w64 headers.
2022-09-28 15:27:51 +02:00
Paul Gofman cb87c14fec winex11.drv: Do not skip taskbar and pager for app window. 2022-09-28 15:14:25 +02:00
Eric Pouech a014f19bdd winedump: Dump PDB public symbols' stream.
Add relevant structures to include/mscvpdb.h.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-27 18:29:34 +02:00
Eric Pouech 805ffc8adb winedump: Dump global hash table out of PDB symbols' stream.
Introduce relevant structures in include/wine/msvcpdb.h.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-27 18:29:27 +02:00
Jacek Caban 26dce2480a winevulkan: Always use params to return Unix thunks result. 2022-09-27 18:25:01 +02:00
Eric Pouech 6b1f051513 krnl386.exe16: Don't pass NULL to printf/%s).
GCC12.2 emits a warning here.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-27 18:14:34 +02:00
Zebediah Figura 1316383268 ddraw: Add FPS tracing in ddraw_surface_update_frontbuffer().
This usually doesn't go through the normal presentation paths.
2022-09-27 18:14:34 +02:00
Zebediah Figura 5f1cbb1b85 d3d9: Use a separate draw texture for managed resources.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52954
2022-09-27 18:14:34 +02:00
Zebediah Figura 2091bb34c2 d3d9: Add reference counting helpers for textures. 2022-09-27 18:14:33 +02:00
Zebediah Figura d5bb570542 d3d9: Introduce a d3d9_texture_preload() helper. 2022-09-27 18:14:33 +02:00
Zebediah Figura 46c9897bdf d3d9: Factor out d3d9_texture_init(). 2022-09-27 18:14:33 +02:00
Brendan Shanks a2c03e2356 wined3d: Set name of internal threads. 2022-09-27 18:14:33 +02:00
Brendan Shanks 746ad6f76e wininet: Set thread name for collect_connections_proc. 2022-09-27 18:14:33 +02:00
Alexandre Julliard 9c5b2bd62c gitlab: Run the full test suite on merge requests. 2022-09-27 18:14:33 +02:00
Alexandre Julliard 5811f5f29e vkd3d: Update version number. 2022-09-27 10:43:47 +02:00
Alexandre Julliard dbaa642717 Revert "oleaut32/tests: Get_test_recordinfo shouldn't point into a specific VARIANT.".
This reverts commit 27f417eb93.
It breaks the tests.
2022-09-27 09:16:16 +02:00
Alexandre Julliard 02ce1008b7 Revert "oleaut32: Dereference VT_RECORD|VT_BYREF in place.".
This reverts commit 28e0d8ff3b.
It breaks the tests.
2022-09-27 09:16:05 +02:00
Rémi Bernon 2a4ec7dafc winegstreamer: Use IWMSyncReader2_GetOutputCount in the async reader. 2022-09-26 21:49:54 +02:00
Rémi Bernon 0f6f105cc0 winegstreamer: Use IWMSyncReader2_SetStreamsSelected in the async reader. 2022-09-26 21:49:54 +02:00
Rémi Bernon 54843124d9 winegstreamer: Use IWMSyncReader2_GetStreamSelected in the async reader. 2022-09-26 21:49:54 +02:00
Rémi Bernon 08effb9046 winegstreamer: Use IWMSyncReader2_GetOutputFormatCount in the async reader. 2022-09-26 21:49:54 +02:00
Rémi Bernon 0dfeadd766 winegstreamer: Use IWMSyncReader2_GetOutputFormat in the async reader. 2022-09-26 21:49:54 +02:00
Rémi Bernon efb6aca850 winegstreamer: Use IWMSyncReader2_SetOutputProps in the async reader. 2022-09-26 21:49:54 +02:00
Rémi Bernon 6070192528 winegstreamer: Use IWMSyncReader2_GetOutputProps in the async reader. 2022-09-26 21:49:54 +02:00
Rémi Bernon 64ee5529e1 winegstreamer: Use IWMSyncReader2_GetMaxStreamSampleSize in the async reader. 2022-09-26 21:49:54 +02:00
Eric Pouech 25108ba266 dbghelp: Fix local scope reset upon module unloading.
Change strategy for resetting local scope when unloading a module.
Old strategy was keeping the local scoped symbol alive on some code path when
unloading a module.
This caused some bad behavior as we kept a pointer to a deleted object.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-26 21:49:54 +02:00
Floris Renaud d0204fea67 po: Update Dutch translation. 2022-09-26 21:49:54 +02:00
Zhiyi Zhang e3c0f6b3ce vulkan-1/tests: Fix test failures on llvmpipe.
This happens because the llvmpipe virtual GPU is not in the RandR provider list
when there is a hardware GPU driving the screen. So LUID for the llvmpipe is
not generated in such cases.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52931
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-09-26 21:49:54 +02:00
Brendan Shanks 3f0166fa89 rpcrt4: Set the name of internal threads. 2022-09-26 21:49:54 +02:00
Brendan Shanks fa8e36fafa ntdll: Set the name of internal thread pool threads. 2022-09-26 21:49:54 +02:00
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