Commit graph

168627 commits

Author SHA1 Message Date
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
Alexandre Julliard
c0f500ba00 winedump: Add a couple of ARM unwind codes. 2023-12-04 22:10:20 +01:00
Alexandre Julliard
17de5daa77 winedump: Add dumping of UWOP_EPILOG entries. 2023-12-04 22:10:20 +01:00
Alexandre Julliard
8c41a215b9 ntdll: Skip NtRaiseException() call on ARM when debugger is not present. 2023-12-04 22:10:20 +01:00
Alexandre Julliard
5b06847214 ntdll: Fix stack layout for KiUserCallbackDispatcher on ARM. 2023-12-03 14:21:20 +01:00
Alexandre Julliard
75d0d466ec ntdll: Fix stack layout for KiUserApcDispatcher on ARM. 2023-12-03 14:16:42 +01:00
Alexandre Julliard
89f3c59739 ntdll: Fix stack layout for KiUserExceptionDispatcher on ARM. 2023-12-03 14:15:52 +01:00
Alexandre Julliard
42046a24d4 ntdll: Implement context and machine frame unwind operations on ARM. 2023-12-03 14:15:52 +01:00
Alexandre Julliard
de3fd9e265 ntdll/tests: Fix some compiler warnings on ARM. 2023-12-03 13:46:52 +01:00
Robert Wilhelm
369b540abf vbscript: Handle numdecimalplaces argument in Round().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55185
2023-12-01 22:35:35 +01:00
Nikolay Sivov
0a7f5646e4 vbscript: Coerce to VT_BOOL when evaluating jump conditions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-12-01 22:35:24 +01:00
Brendan Shanks
295d521b11 ntdll: Fix macOS build error with LLVM 17.
LLVM no longer allows non-private labels to appear between
.cfi_startproc/endproc when targeting Mach-O.

Based on a patch by Jacek Caban.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55863
2023-12-01 19:10:21 +01:00
Rémi Bernon
b088d311a0 explorer: Remove now unnecessary wine_notify_icon support. 2023-12-01 19:09:15 +01:00
Rémi Bernon
48e6bf3cf1 winex11: Use the new SystrayDock driver interface. 2023-12-01 19:09:14 +01:00