Commit graph

164618 commits

Author SHA1 Message Date
Jactry Zeng
3ed6413a50 shell32: Reimplement IExplorerBrowser_SetFolderSettings() with support of setting flags. 2023-05-25 17:49:00 +02:00
Jactry Zeng
49490f8567 shell32/tests: Move tests of IExplorerBrowser_SetFolderSettings() to a separated function and more tests. 2023-05-25 17:49:00 +02:00
Jactry Zeng
e80d8fe098 shell32: Reimplement IFolderView2_SetCurrentViewMode() with modern behaviours.
Only pre-win7 systems return E_INVALIDARG for invalid values, and only pre-vista
systems accept FVM_AUTO as a view mode, others fall it back to FVM_ICON. Let's
switch to modern behaviours, so that we don't need additional code for handling
that when using it to implement IExplorerBrowser_SetFolderSettings().
2023-05-25 17:48:58 +02:00
Jactry Zeng
7f36382006 shell32: Implement IFolderView2_{Get, Set}CurrentFolderFlags(). 2023-05-25 17:48:58 +02:00
Jactry Zeng
c8209830d5 shell32/tests: Add tests for IFolderView2_{Get, Set}CurrentFolderFlags(). 2023-05-25 17:48:57 +02:00
Jacek Caban
cd09a22439 win32u: Use syscall interface for bitblt functions. 2023-05-25 16:26:08 +02:00
Jacek Caban
0c73b717fb win32u: Pass blend function as DWORD to NtGdiAlphaBlend. 2023-05-25 16:26:08 +02:00
Jacek Caban
7acaba6774 win32u: Use syscall interface for more path functions. 2023-05-25 16:26:07 +02:00
Jacek Caban
6452d293de win32u: Use syscall interface for more printer functions. 2023-05-25 16:26:06 +02:00
Jacek Caban
0cccc08cd6 win32u: Use syscall interface for more painting functions. 2023-05-25 16:26:06 +02:00
Jacek Caban
8cc95b5487 win32u: Use syscall interface for more painting functions. 2023-05-25 16:26:05 +02:00
Jacek Caban
3b01fb113f win32u: Use syscall interface for NtGdiOpenDCW. 2023-05-25 16:26:04 +02:00
Alexandre Julliard
00538ed195 configure: Don't create the wine64 symlink in multi-arch builds. 2023-05-25 16:21:17 +02:00
Alexandre Julliard
f6f38e2490 server: Return STATUS_IMAGE_MACHINE_TYPE_MISMATCH when the mapping's machine differs from the process. 2023-05-25 16:21:17 +02:00
Alexandre Julliard
c306e76645 server: Add a separate request to create a memory view for an image mapping. 2023-05-25 16:21:17 +02:00
Alexandre Julliard
d84704192e ntdll: Add a separate helper function for freeing a placeholder. 2023-05-25 16:21:17 +02:00
Paul Gofman
f99b972771 ntdll/tests: Add more tests for placeholders. 2023-05-25 16:21:17 +02:00
Paul Gofman
4142d1e049 ntdll: Support MEM_PRESERVE_PLACEHOLDER in NtFreeVirtualMemory(). 2023-05-25 16:21:17 +02:00
Paul Gofman
04e2b02aa9 ntdll: Support MEM_REPLACE_PLACEHOLDER in NtAllocateVirtualMemoryEx(). 2023-05-25 16:21:17 +02:00
Paul Gofman
b7ea896fdb ntdll: Support MEM_REPLACE_PLACEHOLDER in map_view(). 2023-05-25 16:21:17 +02:00
Paul Gofman
383d43d6cc ntdll: Support MEM_RESERVE_PLACEHOLDER in NtAllocateVirtualMemoryEx().
Based on a patch by Nikolay Sivov.
2023-05-25 16:21:17 +02:00
Paul Gofman
9dd6a66060 ntdll: Pass allocation type to map_view().
Based on a patch by Nikolay Sivov.
2023-05-25 16:21:17 +02:00
Paul Gofman
376bd69c42 ntdll: Handle NULL process handle in MapViewOfFile3().
Based on a patch by Nikolay Sivov.
2023-05-25 16:21:17 +02:00
Gabriel Ivăncescu
35b198c561 mshtml: Stop the plugin when detaching the plugin host.
Otherwise Gecko keeps it running when it is created via put_classid, and
it leaks everything due to holding a ref to it.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-05-25 16:21:17 +02:00
Gabriel Ivăncescu
5c939222d3 mshtml: Release ref from the element when detaching the plugin host.
When the plugin host is created, its only ref is being held by the element
it is associated with.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-05-25 16:21:17 +02:00
Gabriel Ivăncescu
08dc691dfb mshtml: Explicitly hold ref to the plugin host in NPP_New.
Currently this worked by luck because it is leaking; the element holding
it never releases it.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-05-25 16:21:17 +02:00
Aurimas Fišeras
baebde4b29 po: Update Lithuanian translation. 2023-05-25 11:04:30 +02:00
Alex Henrie
624b008f2e mshtml: Only allow one thread to use Gecko.
The new test doesn't pass, but it doesn't crash either, and that's
enough to fix the WinZip installer.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54071
2023-05-25 11:04:23 +02:00
Francois Gouget
5d516dd931 wininet/tests: Consistently use strlen() instead of lstrlenA(). 2023-05-25 11:04:10 +02:00
Francois Gouget
a551821a4e wininet/tests: Consistently use strlen() in the InternetGetConnectedStateExA() tests. 2023-05-25 11:04:09 +02:00
Alex Henrie
e7c6cdddf3 mshtml: Fix memory leak on error path in add_func_info (Coverity). 2023-05-25 11:04:06 +02:00
Tim Clem
a001c0a030 wow64win: Only marshal MSGs in wow64_NtUserCallWindowsHook if needed.
lparam != 0 does not imply lparam_size is big enough for a MSG, so we
can end up manipulating memory past the end of the buffer.

Co-authored-by: Jacek Caban <jacek@codeweavers.com>
2023-05-25 11:03:58 +02:00
Alexandros Frantzis
e10da7ab2e winewayland.drv: Update desktop window size on display changes.
Update the desktop window size to match the current virtual screen rect.
2023-05-24 22:20:14 +02:00
Alexandros Frantzis
82c6becb04 winewayland.drv: Update display devices from the desktop window thread.
Use a driver internal window message to dispatch updates to display devices from
the desktop window thread.
2023-05-24 22:20:12 +02:00
Alexandros Frantzis
1a336a259c winewayland.drv: Make access to Wayland output information thread-safe.
Store all incoming Wayland output state as pending and make it current
in a thread-safe way when the "done" event arrives. This enables other
threads, with proper locking, to safely read consistent and complete
Wayland output information.
2023-05-24 22:20:11 +02:00
Alexandros Frantzis
0031c3b46c winewayland.drv: Handle dynamic Wayland output events.
Handle Wayland output events sent after process initialization,
and update the win32u display devices when handling these
events in the desktop window process.
2023-05-24 22:20:09 +02:00
Alexandros Frantzis
4a69ec6f96 winewayland.drv: Read and dispatch Wayland events.
Create a dedicated thread from which we read and dispatch Wayland events
(beyond the initial ones).
2023-05-24 22:20:08 +02:00
Alexandros Frantzis
e352fa19fa winewayland.drv: Allocate process_wayland statically.
There is currently no benefit to dynamic allocation, and static
allocation allows us to simplify some aspects of initialization.
2023-05-24 22:20:06 +02:00
Zebediah Figura
5eeed9ab26 mmdevapi/tests: Add some tests for PKEY_AudioEngine_DeviceFormat. 2023-05-24 21:08:32 +02:00
Zebediah Figura
d41303b6d0 mmdevapi/tests: Run property store tests for all devices. 2023-05-24 21:08:32 +02:00
Zebediah Figura
fd757e6ba4 mmdevapi/tests: Remove some unnecessary workarounds. 2023-05-24 21:08:32 +02:00
Paul Gofman
1ea5d470a2 nsiproxy.sys: Detect PPP interface type from flags on Linux.
VPN interfaces often have ARPHRD_NONE in ifr_hwaddr.sa_data
but IFF_POINTOPOINT flag set.
2023-05-24 21:08:32 +02:00
Davide Beatrici
b87ee7d484 wineoss: Move stream mode and period/duration initialization logic into unixlib. 2023-05-24 21:08:32 +02:00
Davide Beatrici
396acb0ec3 winecoreaudio: Move stream mode and period/duration initialization logic into unixlib. 2023-05-24 21:08:32 +02:00
Davide Beatrici
b08d7efa5e winealsa: Move stream mode and period/duration initialization logic into unixlib. 2023-05-24 21:08:32 +02:00
Anton Baskanov
b923aea734 dsound: Clamp the shifted frequency to [DSBFREQUENCY_MIN, DSBFREQUENCY_MAX]. 2023-05-24 18:39:47 +02:00
Anton Baskanov
3d5f2f8796 dsound/tests: Test that the shifted frequency is limited to DSBFREQUENCY_MAX. 2023-05-24 18:39:47 +02:00
Anton Baskanov
315e998951 dsound: Limit the Doppler shift to +-0.5 speed of sound. 2023-05-24 18:39:47 +02:00
Anton Baskanov
8acc3b83e8 dsound/tests: Test that the Doppler shift is limited to +-0.5 speed of sound. 2023-05-24 18:39:47 +02:00
Anton Baskanov
81feccb7e3 dsound: Use relative velocity to compute Doppler shift.
It's less physically correct but closer to the native behavior.
2023-05-24 18:39:47 +02:00