Commit graph

164852 commits

Author SHA1 Message Date
Alexandre Julliard 78ed343842 loader: Force building the main loader as PIE on 64-bit.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55050
2023-06-19 17:30:45 +02:00
Alexandre Julliard 718068c42c include: Disallow fastcall functions in Unix libraries. 2023-06-19 16:28:54 +02:00
Alex Henrie 0a07f5984e wininet: Don't overallocate in urlcache_encode_url_alloc (scan-build).
The URL is encoded in UTF-8, not UTF-16.
2023-06-19 16:28:54 +02:00
Alex Henrie b97b2fbf00 urlmon: Don't export urlmon_instance. 2023-06-19 16:28:54 +02:00
Davide Beatrici cafed10a11 wineoss: Use mmdevapi's stream_release. 2023-06-19 16:28:54 +02:00
Davide Beatrici def6e1c77d winecoreaudio: Use mmdevapi's stream_release. 2023-06-19 16:28:54 +02:00
Davide Beatrici d49a6b773e winealsa: Use mmdevapi's stream_release. 2023-06-19 16:28:54 +02:00
Davide Beatrici 959dd9a9a3 winepulse: Move stream_release into mmdevapi. 2023-06-19 16:28:54 +02:00
Alex Henrie add5c43fdb hhctrl: Initialize item->items to NULL in parse_index_sitemap_object (scan-build).
Initializing to NULL makes it more clear that the initial value is only
used as a parameter to realloc.
2023-06-19 16:28:54 +02:00
Alex Henrie 47e044b81d comctl32: Remove duplicate declarations of MONTHCAL functions.
MONTHCAL_MonthLength and MONTHCAL_CalculateDayOfWeek are already
declared in dlls/comctl32/comctl32.h.
2023-06-19 16:28:54 +02:00
Alex Henrie 15c00627ee comdlg32: Don't use GetProcAddress for SHSimpleIDListFromPath.
The function is exported by name from shell32 and declared in a public
header.
2023-06-19 13:18:01 +02:00
Fabian Maurer 2c235b6fe4 gdiplus: Refactor and add comments for easier understanding.
Hopefully useful for people like me who had a hard time understanding
what was going on. Especially with the rearranged divison and the
simplification I had a hard time seeing why that does what it does

Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
2023-06-19 13:17:24 +02:00
Andrey Gusev a5ea2c57c9 include: Add flags in D3D11_RESOURCE_MISC_FLAG. 2023-06-19 13:17:13 +02:00
Jactry Zeng 7a353e15f6 atl: Convert REG_DWORD to a correct type. 2023-06-19 13:16:05 +02:00
Jactry Zeng 6468ffd8bb atl/tests: Move regular DWORD tests into a loop. 2023-06-19 13:16:05 +02:00
Alex Henrie f9785543a8 combase: Don't export hProxyDll or rpc_execute_call. 2023-06-19 13:15:31 +02:00
Zebediah Figura e8b0e7c1fc xaudio2/tests: Fix the IID_IXAudio28 declaration.
This was accidentally copied from the 2.9 version instead in 14c44d0b0.
2023-06-19 13:15:25 +02:00
Rémi Bernon 8d2de5dbe1 win32u: Use a specific flag instead of shrinking the clip rect.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55047
2023-06-16 21:42:44 +02:00
Rémi Bernon ab9b99c4a5 server: Pass set_cursor flags in WM_WINE_CLIPCURSOR wparam.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55047
2023-06-16 21:35:58 +02:00
Rémi Bernon 56e2a08dae win32u: Remove unnecessary set_cursor new_clip rect copy. 2023-06-16 21:35:58 +02:00
Alexandre Julliard f5784e2fd1 services: Use nameless unions/structs. 2023-06-16 17:58:37 +02:00
Alexandre Julliard c2d1c8dcd3 regedit: Use nameless unions/structs. 2023-06-16 17:58:16 +02:00
Alexandre Julliard 5d9ea809da oleview: Use nameless unions/structs. 2023-06-16 17:58:03 +02:00
Alexandre Julliard 52a868a8fe netstat: Use nameless union/structs. 2023-06-16 17:57:36 +02:00
Alexandre Julliard e3664fa8ad ipconfig: Use nameless union/structs. 2023-06-16 17:57:24 +02:00
Alexandre Julliard 14518662d6 explorer: Use nameless union/structs. 2023-06-16 17:57:11 +02:00
Alexandre Julliard 2e58c9e060 conhost: Use nameless union/structs. 2023-06-16 17:56:55 +02:00
Georg Lehmann 7eb75124e7 winevulkan: Update to VK spec version 1.3.254. 2023-06-16 17:55:39 +02:00
Rémi Bernon 330827a011 winegstreamer: Pass the stream descriptor to media_stream_create. 2023-06-16 17:54:08 +02:00
Rémi Bernon 43ea59fdf9 winegstreamer: Introduce new init_audio_media_types helper. 2023-06-16 17:54:08 +02:00
Rémi Bernon 3a603357bc winegstreamer: Introduce new init_video_media_types helper. 2023-06-16 17:54:08 +02:00
Rémi Bernon b0ecfc96df winegstreamer: Factor the creation of the first stream media type. 2023-06-16 17:54:08 +02:00
Rémi Bernon 82b1cc3cbe winegstreamer: Pass a struct wg_parser_stream to media_stream_create. 2023-06-16 17:54:08 +02:00
Rémi Bernon 694c334536 winegstreamer: Introduce new stream_descriptor_set_tag helper. 2023-06-16 17:54:08 +02:00
Alex Henrie 993f4d48d2 msi: Fix memory leaks in HANDLE_CustomType23 (scan-build). 2023-06-16 10:30:48 +02:00
Alex Henrie 1f7c84a33a winhttp: Fix memory leak on error path in request_get_codepage (scan-build). 2023-06-16 10:30:42 +02:00
Alex Henrie 0653409e06 msi: Fix double free on error paths in TransformView_Create (scan-build).
If TransformView_Create returns an error, it should not return a pointer
that table_load_transform will try to free.
2023-06-16 10:30:35 +02:00
Alex Henrie 4db2ffa60e msi: Fix memory leak on error path in MSI_OpenPackageW (scan-build). 2023-06-16 10:30:29 +02:00
Alex Henrie 3caa27eafb wusa: Zero out identity on error path in read_identity.
Fixes double frees in read_components and read_dependency. The double
frees could also be fixed by using free instead of free_dependency in
those functions, but zeroing out the pointers is easier to understand
because it ensures that alloc_dependency can always be paired with
free_dependency.
2023-06-16 10:30:21 +02:00
Davide Beatrici 617117ceae wineoss: Call mmdevapi's get_application_name. 2023-06-16 10:30:13 +02:00
Davide Beatrici bb2e093ad3 winecoreaudio: Call mmdevapi's get_application_name. 2023-06-16 10:30:13 +02:00
Davide Beatrici b549546ee2 winealsa: Call mmdevapi's get_application_name. 2023-06-16 10:30:13 +02:00
Davide Beatrici bfb3bbba54 winepulse: Move get_application_name into mmdevapi. 2023-06-16 10:30:12 +02:00
Davide Beatrici 62cd90e8ac winepulse: Move AudioClient's Initialize's exclusive mode check into unixlib. 2023-06-16 10:30:12 +02:00
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