Commit graph

168515 commits

Author SHA1 Message Date
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
Rémi Bernon
229b4561d9 explorer: Use layered windows for the docked systray icons. 2023-12-01 19:09:14 +01:00
Rémi Bernon
62c6646d8f win32u: Introduce new SystrayDock driver entry points. 2023-12-01 19:08:55 +01:00
Rémi Bernon
550cac9686 winemac: Use the new NotifyIcon user driver interface. 2023-12-01 19:08:55 +01:00
Rémi Bernon
22bfdbeb48 win32u: Introduce a new NtUserSystemTrayCall message call. 2023-12-01 19:08:54 +01:00
Rémi Bernon
600206be39 explorer: Hide the standalone systray window on close. 2023-12-01 19:08:54 +01:00
Rémi Bernon
27c3cf93e3 explorer: Always set the systray icon tooltip text. 2023-12-01 19:08:54 +01:00
Myah Caron
79d0c050a9 user32: Add SetDisplayAutoRotationPreferences stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55920
Signed-off-by: Myah Caron <qsniyg@protonmail.com>
2023-12-01 19:07:49 +01:00
Fabian Maurer
13928e0855 server: Check socket flags after all sockets got processed.
In rare cases we get an event during the second iteration of the loop,
changing the first element. This would lead to an assertion later.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55054
2023-12-01 18:51:49 +01:00
Fabian Maurer
c241468f16 coml2: Move WriteClassStg from ole32. 2023-12-01 18:51:25 +01:00
Fabian Maurer
754631becb coml2: Move WriteClassStm from ole32. 2023-12-01 18:51:25 +01:00
Fabian Maurer
fae825276a coml2: Move ReadClassStg from ole32. 2023-12-01 18:51:25 +01:00
Fabian Maurer
a72b534dc9 coml2: Move ReadClassStm from ole32. 2023-12-01 18:51:25 +01:00