Commit graph

168540 commits

Author SHA1 Message Date
Alex Henrie 3adad15f40 mscoree: Annotate WtoA with __WINE_(DEALLOC|MALLOC). 2023-12-05 21:24:36 +01:00
Alex Henrie b49831773d mscoree: Use CRT allocation functions. 2023-12-05 21:24:36 +01:00
Alexandre Julliard ef07f6bb72 winedump: Also dump ARM64 exception information for ARM64EC binaries. 2023-12-05 21:24:36 +01:00
Alexandre Julliard a2e97854bf ntdll: Use .seh handler in RtlUserThreadStart on ARM. 2023-12-05 13:28:05 +01:00
Alexandre Julliard 8a1420653c ntdll: Fix breakpoint exceptions on ARM. 2023-12-05 09:48:46 +01:00
Alexandre Julliard 4a138da761 configure: Require SEH support for PE builds. 2023-12-05 09:48:46 +01:00
Vijay Kiran Kamuju d37f0892be dsdmo: Add Gargle effect stub. 2023-12-04 22:14:09 +01:00
Vijay Kiran Kamuju cf6046afb6 dsdmo: Add Distortion effect stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55978
2023-12-04 22:14:09 +01:00
Jon Doron 28ca56257e win32u: Add registry data for GPU memory size.
Starcraft Remastered is looking up for the GPU physical memory size to
check for minimum requirements to enable RealTime Lighting.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46624
Signed-off-by: Jon Doron <arilou@gmail.com>
2023-12-04 22:10:23 +01:00
Haoyang Chen 6b6aff8322 rpcrt4/tests: Test explicit_handle. 2023-12-04 22:10:23 +01:00
Haoyang Chen 9a4de1b727 rpcrt4: Support for explicit handle passing.
If explicit_handle is defined in the idl file, c/s use explicit handles,
then an explicit handle must be passed in to the server-side  interface
2023-12-04 22:10:23 +01:00
Zhiyi Zhang c2d56a7e99 winegstreamer: Fix wg_transform_get_status() result check (Coverity).
wg_transform_get_status() returns bool, not HRESULT.
2023-12-04 22:10:22 +01:00
Zhiyi Zhang c1fa6be453 winegstreamer: Fix a memory leak (Coverity).
video_format can be leaked when encountering an invalid WMV format.
2023-12-04 22:10:22 +01:00
Alex Henrie 93db373c28 ole32/tests: Use CRT allocation functions. 2023-12-04 22:10:22 +01:00
Alex Henrie 3bda065374 ole32/tests: Free what get_stgdef returns in test_OleCreateStaticFromData. 2023-12-04 22:10:22 +01:00
Zhiyi Zhang 41d923a49f gdiplus: Fix a memory leak (Coverity). 2023-12-04 22:10:22 +01:00
Gabriel Ivăncescu 47eec813a3 mshtml/tests: Fix XHR leak in test_window_refs.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-12-04 22:10:22 +01:00
Gabriel Ivăncescu 9bdfe8ee25 mshtml: Don't check for NULL outer_window from within HTMLWindow* methods.
These methods are not called from any of our objects that hold ref to the
inner window only, and since we return outer windows to external callers
now, they *must* have a ref to the outer window, which effectively means
these cannot be NULL. And some other places didn't check for NULL either
(e.g. get_parent).

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-12-04 22:10:22 +01:00
Gabriel Ivăncescu 0dc3784b68 mshtml: Don't attempt to send storage events after outer window is detached.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-12-04 22:10:22 +01:00
Gabriel Ivăncescu a5028f1e26 mshtml: Don't rely on the outer_window in document.mimeType.
This would have crashed on detached windows, and checking the navigation_start
time has the same effect except it's decoupled from the outer window.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-12-04 22:10:22 +01:00
Rémi Bernon ecc54b84ad winevulkan: Remove unnecessary dispatch from make_vulkan. 2023-12-04 22:10:22 +01:00
Rémi Bernon 60cb635e7b winevulkan: Omit defaults in make_vulkan FUNCTION_OVERRIDES. 2023-12-04 22:10:22 +01:00
Rémi Bernon 87e8b8a164 winewayland: Use "host" intead of "native" in vulkan wrappers. 2023-12-04 22:10:22 +01:00
Rémi Bernon ec1910da6a winemac: Use "host" instead of "native" in vulkan wrappers. 2023-12-04 22:10:22 +01:00
Rémi Bernon c0042af5cc winex11: Use "host" instead of "native" in vulkan wrappers. 2023-12-04 22:10:22 +01:00
Rémi Bernon 288d2c2ef6 winevulkan: Use "host" more consistently instead of "native".
We often use "native" to talk about Windows "native" code, which is
confusing here.
2023-12-04 22:10:22 +01:00
Paul Gofman 0080205dbd winhttp: Handle chunked requests. 2023-12-04 22:10:22 +01:00
Zhiyi Zhang 2eeb5feca7 ntdll: Fix a memory leak (Coverity). 2023-12-04 22:10:22 +01:00
Zhiyi Zhang 2169dd9a55 shell32: Fix a memory leak (Coverity). 2023-12-04 22:10:22 +01:00
Zhiyi Zhang d36f50c438 wininet: Fix a use-after-free (Coverity).
pEntry could be freed after cache_container_unlock_index(pContainer, pHeader).
2023-12-04 22:10:22 +01:00
Zhiyi Zhang 1a6deb1cc3 tasklist: Fix a possible buffer overrun (Coverity).
process_entry->szExeFile has length of MAX_PATH but info->image_name only has 32.
2023-12-04 22:10:22 +01:00
Zhiyi Zhang eeb1826c3f mciwave: Use matching memory allocator (Coverity).
*pszTmpFileName will be freed with free() but it's allocated with HeapAlloc().
2023-12-04 22:10:22 +01:00
Zebediah Figura c93440b700 d3d9: Upload mapped dynamic vertex and index buffers before every draw.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55591
2023-12-04 22:10:22 +01:00
Zebediah Figura 346f783ccc d3d9/tests: Add another test for drawing from a mapped buffer. 2023-12-04 22:10:22 +01:00
Zebediah Figura e2c373d7f3 wined3d: Fix masking out the texcoord index in get_texture_matrix().
Fixes: 370b8299ab
2023-12-04 22:10:22 +01:00
Zebediah Figura 084e6e21da wined3d: Retrieve the FFP projection control flag from the d3d info in get_texture_matrix(). 2023-12-04 22:10:22 +01:00
Zebediah Figura 9a45a637d5 wined3d: Check WINED3D_TEXTURE_POW2_MAT_IDENT instead of context->lastWasPow2Texture.
As with the previous commit, this is clearer and avoids a state ordering assumption.
2023-12-04 22:10:22 +01:00
Zebediah Figura 936b950112 wined3d: Use context->stream_info.position_transformed instead of context->last_was_rhw in state handlers.
Use of last_was_rhw in these state handlers is, firstly, confusing to read.
The variable is actually supposed to be set for *this* draw, not the last one,
and state handlers indeed expect that, but that fact isn't obvious. Reading from
context->stream_info instead is clearer.

Secondly, since last_was_rhw is set by the STATE_VDECL handler, any other state
depending on it (including some, though not all, of the sites changed here) thus
has an implicit state handler ordering assumption. This is, needless to say,
fragile. context->stream_info is computed before state handlers, so that
dependency is a bit less fragile.
2023-12-04 22:10:22 +01:00
Zebediah Figura 5d5adce343 wined3d: Remove an outdated comment.
The comment was originally added in 4b831a5d3e.
At that point, it referred only to non-FFP shader constants. Subsequently
38934fe70d moved bumpenv constant loading to the
misc pipeline, apparently out of concerns that bumpenv constants might interact
badly with shader constants.

It's not clear whether those concerns were ever justified, and normal shader
constants are now sufficiently untangled from each other anyway. However,
bumpenv constants, like e.g. color keys, affect both FFP and non-FFP pipelines,
so it makes the most sense for them to remain in the misc state table anyway.
2023-12-04 22:10:22 +01:00
Etaash Mathamsetty 73a1c134ad cfgmgr32: Add CM_Register_Notification stub. 2023-12-04 22:10:21 +01:00
Alex Henrie 17da2665e2 d3dx9: Use CRT allocation functions. 2023-12-04 22:10:21 +01:00
Daniel Lehman 3b3a65ad37 msxml3: Handle default namespace in get_baseName. 2023-12-04 22:10:21 +01:00
Nikolay Sivov bed12d8499 oleaut32/tests: Do not use VarCmp() to check results of other functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-12-04 22:10:21 +01:00
Nikolay Sivov 406750714b oleaut32/tests: Use existing helpers to trace variant values.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-12-04 22:10:21 +01:00
Nikolay Sivov f83b41eed6 oleaut32/tests: Use wide string literals in some tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-12-04 22:10:21 +01:00
Nikolay Sivov 14a04ecd1b oleaut32/tests: Remove some of the function availability checks.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-12-04 22:10:21 +01:00
Piotr Caban d26e160db6 wineps.drv: Add paper source selection support in printer properties. 2023-12-04 22:10:21 +01:00
Piotr Caban a294a6cbbf wineps.drv: Fix printing images from iexplore. 2023-12-04 22:10:20 +01:00
Zhiyi Zhang 36366f129b win32u: Find the correct DIB driver in windrv_CreateDC().
push_dc_driver() places drivers based on their priorities, so the newly created driver is not
necessarily on top. Thus in windrv_CreateDC(), find_dc_driver() should be used to find the DIB
driver instead of assuming the DIB driver is the top driver, which could be the path driver because
it has a higher priority.

The exact wrong code path was:
1. A path driver with priority 400 is created for a DC.
2. windrv_CreateDC() is called to create a window driver for the DC.
3. Then in dibdrv_CreateDC(), push_dc_driver() is called with 'dev' pointing to the top driver, which is the path driver.
4. push_dc_driver() updates 'dev' to point to the address of the next driver because DIB driver has a lower 300 priority.
5. The DIB driver is assigned to 'dev', which is not the original parameter passed into push_dc_driver().
6. In windrv_CreateDC(), get_dibdrv_pdev(*dev) is called, assuming the top driver is the DIB driver. But actually the top
   driver that '*dev' points to is still the path driver.

The added tests can demonstrate the memory corruption before this fix is applied.
2023-12-04 22:10:20 +01:00
Alexandre Julliard 9aefdbb9d9 faudio: Import upstream release 23.12. 2023-12-04 22:10:20 +01:00