Commit graph

164808 commits

Author SHA1 Message Date
Alex Henrie e24bcef157 wldap32: Clean up LDAP_OPT_API_INFO.
Fix memory leaks on error paths, don't call memset unnecessarily, and
ensure that all output fields are initialized.
2023-06-16 10:30:00 +02:00
Rémi Bernon 272f712b60 winex11: Replace the clipping message HWND with a BOOL flag.
We don't need the window anymore, it was only used to send ClipCursor
notifications. This improves cursor clipping performance a lot as it
avoids re-creating a window every time.
2023-06-15 22:14:35 +02:00
Rémi Bernon 1f90d03b78 winex11: Simplify the cursor clipping retry mechanism.
If the focus changes between Wine windows, the wineserver logic will
decide to reset the clipping rectangle. However winex11 also needs to
support the case when focus changes to a host window, in virtual desktop
mode, and in this case the foreground window doesn't actually change.

To fix this, in virtual desktop mode, release the cursor on focus out
events, and reapply the cursor clipping rect when the virtual desktop
window is focused again.

We can use the same logic on NotifyGrab events, when the WM grabs the
keyboard, and later reapply the Wine clipping rect when we are notified
about the keyboard ungrab.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55046
2023-06-15 22:13:45 +02:00
Rémi Bernon 89415925b7 winex11: Don't grab the cursor if another process is focused.
This might be the case when in virtual desktop mode for instance, where
we don't change Wine foreground window when the virtual desktop is
focused out.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55046
2023-06-15 22:13:43 +02:00
Rémi Bernon b3c1bd33e0 win32u: NtUserGetObjectInformation returns a BOOL, not NTSTATUS.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55047
2023-06-15 22:10:51 +02:00
Rémi Bernon f4cb3230d8 server: Update the DF_WINE_CREATE_DESKTOP desktop flag on opening.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55047
2023-06-15 22:10:51 +02:00
Daniel Lehman 0a6b5c7932 wininet: Free temporary buffer in InternetQueryOptionW loop. 2023-06-15 22:10:35 +02:00
Alexandre Julliard 045d211308 makefiles: Disable native import libraries on ARM64. 2023-06-15 12:03:34 +02:00
Alexandre Julliard 56fe04085d makefiles: Don't build native import libraries for PE-only build. 2023-06-15 12:03:34 +02:00
Alexandre Julliard fa732145b8 makefiles: Make the dll extension a per-architecture variable. 2023-06-15 10:27:06 +02:00
Alexandre Julliard 80fc252f18 makefiles: Pass the dll extension from configure. 2023-06-15 10:21:16 +02:00
Fabian Maurer a58ec76989 mmdevapi: Don't redefine stream_handle (gcc 4.3).
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
2023-06-15 10:03:56 +02:00
Alex Henrie f0b0c7f464 rpcrt4: Don't use GetProcAddress for ole32 functions.
It's more elegant to put ole32 in the DELAYIMPORTS.
2023-06-15 10:03:47 +02:00
Ziqing Hui 8e3f316cc9 winegstreamer: Implement Flush for WMV decoder DMO. 2023-06-15 10:03:41 +02:00
Bernhard Kölbl f19a0fb6c2 mf: Don't leak sink in session_get_renderer_node_service().
Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
2023-06-15 10:03:08 +02:00
Bernhard Kölbl bea37208fe mf: Clear queued topologies on session shutdown.
Programs might expect objects inside the queued toplogy to be freed,
before they eventually call release on the session itself.

This fixes reference leaks to stored objects in queued topology nodes,
even when IMFMediaSession_Shutdown() was called.

Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
2023-06-15 10:03:06 +02:00
Akihiro Sagawa c43a4aee77 commdlg: Fix dialog template parser when caption starts with a DBCS character.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55043
2023-06-14 19:21:41 +02:00
Alex Henrie 9c4d30ad70 shell32: Fix memory leak on error path in FolderItems_Constructor (scan-build). 2023-06-14 19:20:54 +02:00
Nikolay Sivov e6229b5273 scrrun/dictionary: Compare key values in addition to their hashes.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-06-14 18:53:36 +02:00
Shaun Ren 7cd77b2a78 sapi: Implement ISpMMSysAudio::EventHandle. 2023-06-14 18:53:36 +02:00
Shaun Ren ef730b6e41 sapi: Implement ISpMMSysAudio::Write. 2023-06-14 18:53:36 +02:00
Shaun Ren 7bced2878a sapi: Free completed buffers asynchronously in SpMMAudio.
Also introduce async helpers.

The buffers cannot be freed directly in wave_out_proc, because calling
waveOut related functions in the callback could cause a deadlock.
2023-06-14 18:53:36 +02:00
Shaun Ren 107d95165a sapi: Partially implement ISpMMSysAudio::SetState. 2023-06-14 18:53:36 +02:00
Alexandre Julliard 250efdf0c6 include: Don't support stdcall functions on non-i386. 2023-06-14 18:53:36 +02:00
Alexandre Julliard ed36f4bc8c wow64cpu: Don't define stdcall functions on non-i386. 2023-06-14 18:53:36 +02:00
Alexandre Julliard 2b6e32f358 ntdll: Don't define stdcall functions on non-i386. 2023-06-14 18:53:36 +02:00
Alexandre Julliard c908ad6fcd kernelbase: Don't define stdcall functions on non-i386. 2023-06-14 18:53:36 +02:00
Eric Pouech 766448f8ff kernel32/tests: Extend console inheritance tests.
- Define what the std handles are before inheriting them
- Check access to parent console from child through std handles

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-06-13 22:10:56 +02:00
Vladislav Timonin a0571a2d3a shell32: Don't show size for inaccessible drives in My Computer. 2023-06-13 22:10:56 +02:00
Vladislav Timonin 83641ce6b8 shell32: Show >4GB values in size columns of My Computer. 2023-06-13 22:10:56 +02:00
Jacek Caban c94bca9d83 win32u: Remove duplicated d3dkmdt.h include. 2023-06-13 22:10:56 +02:00
Jacek Caban 5127bedd54 user32: Remove no longer used setupapi import. 2023-06-13 22:10:56 +02:00
Rémi Bernon 9f8d9eef21 winex11: Set the window cursor immediately in SetCursor.
Instead of synchronizing the cursor on mouse changes. The SetCursor call
should now only be made when cursor or window handle have changed.
2023-06-13 22:10:56 +02:00
Rémi Bernon b17b77c707 wineandroid: Set the window cursor immediately in SetCursor. 2023-06-13 22:10:56 +02:00
Rémi Bernon 4b968267c1 win32u: Notify drivers of cursor changes on WM_WINE_SETCURSOR. 2023-06-13 22:10:56 +02:00
Rémi Bernon 3afff1a690 win32u: Add a hwnd parameter to SetCursor driver entry points. 2023-06-13 22:10:56 +02:00
Rémi Bernon 25906eedd8 server: Introduce and send new WM_WINE_SETCURSOR hardware message. 2023-06-13 22:10:56 +02:00
Rémi Bernon b04ef19930 server: Keep track of the current desktop cursor handle. 2023-06-13 22:10:56 +02:00
Rémi Bernon 10f5ff7f06 server: Update desktop cursor window when cursor pos changes. 2023-06-13 22:10:56 +02:00
Alexandre Julliard 3c4be9856d ntdll: Make only the necessary pages writable in the ARM64EC code map. 2023-06-13 22:10:56 +02:00
Alexandre Julliard f473e31341 ntdll: Load modules with a high base address in high memory. 2023-06-13 22:10:56 +02:00
Alexandre Julliard a82238fad5 ntdll: Allocate 64-bit and kernel stacks in high memory. 2023-06-13 22:10:56 +02:00
Alexandre Julliard 11cd51139d ntdll: Support the lower memory limit in MEM_ADDRESS_REQUIREMENTS. 2023-06-13 22:10:56 +02:00
Alexandre Julliard 2705e6c319 server: Also enforce the size of varargs data structures. 2023-06-13 22:10:56 +02:00
Alexandre Julliard 2f3c8be54f kernel32/tests: Fix the PROCESS_BASIC_INFORMATION exit status type. 2023-06-13 22:10:56 +02:00
Davide Beatrici e55c432a91 wineoss: Implement main_loop in unixlib. 2023-06-13 10:32:19 +02:00
Davide Beatrici 9ad0694aed winecoreaudio: Implement main_loop in unixlib. 2023-06-13 10:32:19 +02:00
Davide Beatrici b089e4a2bb winealsa: Implement main_loop in unixlib. 2023-06-13 10:32:19 +02:00
Davide Beatrici 03e5c9fa7d winepulse: Move main loop logic into mmdevapi. 2023-06-13 10:32:18 +02:00
Connor McAdams c7431990d8 uiautomationcore: Unconditionally match all events registered on the desktop node with a scope of subtree.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-06-12 21:21:42 +02:00