Commit Graph

156319 Commits

Author SHA1 Message Date
Zhiyi Zhang a1dda8c376 win32u: Return -1 for NUMCOLORS with 8-bit display DCs.
According to tests, GetDeviceCaps(NUMCOLORS) returns -1 for display DCs when the current display
mode is 8-bit on newer versions of Windows, which makes sense because lower bit depth display modes
are actually emulated with 32-bit modes.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52679
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 14:44:58 +02:00
Zhiyi Zhang bfed433024 user32/tests: Test NUMCOLORS for display DCs.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 14:44:55 +02:00
Zhiyi Zhang 6c784f2c46 user32/tests: Avoid unnecessary display mode changes.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 14:44:49 +02:00
Timo Zuccarello a54755c87c winex11.drv: Do not assign reserved virtual key 0xE0 to key codes.
Signed-off-by: Timo Zuccarello <timo@zuccarello.eu>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 14:43:54 +02:00
Zebediah Figura ea4353858d user32: Do not call the lparam for WM_SYSTIMER messages.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 14:41:48 +02:00
Zebediah Figura 019313b63e win32u: Do not call the lparam for WM_SYSTIMER messages.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 14:41:42 +02:00
Zebediah Figura 5e4dedff8e win32u: Remove the "proc" parameter to NtUserSetSystemTimer().
Testing on 32-bit Windows 10 suggests that the function only has three
parameters. The test fixed in this patch (which still succeeds on e.g. Windows
2003) suggests that the final parameter to SetSystemTimer() is not a callback,
either.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 14:41:22 +02:00
Zebediah Figura 079b0423b5 user32: Update mouse tracking information based on the timer ID in DispatchMessage().
Avoid passing a callback to NtUserSetSystemTimer(); it does not support one.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 14:41:08 +02:00
Zebediah Figura 95378c56b8 user32: Toggle the caret based on the timer ID in DispatchMessage().
Avoid passing a callback to NtUserSetSystemTimer(); it does not support one.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 14:40:59 +02:00
Zebediah Figura 33087806a6 user.exe: Implement SetSystemTimer() using SetTimer().
Avoid using SetSystemTimer() to specify a callback; it does not support one.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 14:40:39 +02:00
Hans Leidekker 7435487992 webservices: Always set channel state to WS_CHANNEL_STATE_FAULTED when a send or receive operation failed.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 12:40:03 +02:00
Connor McAdams 3dfe1d7733 webservices: Respect session dictionary size limits on receive dictionary.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 12:39:59 +02:00
Connor McAdams e2fa62b8fe webservices: Respect session dictionary size limits on send dictionary.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 12:39:49 +02:00
Rémi Bernon 36b45c6d1c include: Add Windows.Gaming.Input.ForceFeedback.IForceFeedbackEffect interface declaration.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 22:58:12 +02:00
Rémi Bernon b1998870df include: Remove nested namespaces in windows.gaming.input.forcefeedback.idl.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 22:58:07 +02:00
Rémi Bernon 8421f1ec8b include: Add Windows.Gaming.Input.RacingWheel runtimeclass declaration.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 22:58:02 +02:00
Biswapriyo Nath 38b140f69c include: Add IArcadeStick interface in windows.gaming.input.idl.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 22:57:56 +02:00
Nikolay Sivov 7e446ce7e7 wusa: Remove string duplication helper.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 22:57:51 +02:00
Nikolay Sivov 76fa97cddd dwrite/tests: Fix context text.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 22:57:46 +02:00
Nikolay Sivov 77c06dfb29 dwrite/tests: Use safe table access helpers for GetFontSignature().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 22:57:42 +02:00
Rémi Bernon c0584779f8 kernelbase: Allocate global memory handle table dynamically.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52763
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 17:51:04 +02:00
Zebediah Figura 6fc2799bd0 wined3d: Make wined3d_context_gl_set_draw_buffer() static.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 17:49:30 +02:00
Zebediah Figura 68cd60436c wined3d: Factor out context_gl_apply_texture_draw_state().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 17:49:27 +02:00
Jacek Caban c5e7f1b0e5 winex11: Use Unix environment variable in remove_startup_notification.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 17:31:21 +02:00
Jacek Caban ee405dd8b8 win32u: Move is_window_rect_full_screen implementation from winex11.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 17:31:18 +02:00
Jacek Caban 782220626f win32u: Move GetMenuInfo implementation from user32.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 17:31:15 +02:00
Jacek Caban 9015ae5978 win32u: Move NtUserSetMenu implemenetation from user32.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 17:31:08 +02:00
Jacek Caban 19a2af2767 win32u: Move NtUserGetMenuItemRect implementation from user32.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 17:31:03 +02:00
Jacek Caban d275253f5d win32u: Move NtUserSetMenuContextHelpId implementation from user32.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 17:30:58 +02:00
Huw Davies f57a3916e8 wineoss: Move MODM_OPEN and MODM_CLOSE to the unixlib.
They are both moved together because of the memory
allocated for "lpExtra".

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 16:32:48 +02:00
Huw Davies 5ebc7d78aa wineoss: Add a temporary midi_out_fm_reset syscall.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 16:32:45 +02:00
Huw Davies bbe19f20a9 wineoss: Add a temporary midi_out_fm_patch syscall.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 16:32:43 +02:00
Huw Davies e37bf4e991 wineoss: Add a temporary syscall to open and close the seq fd.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 16:31:44 +02:00
Huw Davies 53eeb1162d wineoss: Store the sequencer fd in the driver struct.
This avoids using a global variable.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 16:31:41 +02:00
Connor McAdams c03f747a3a webservices: Properly handle max session dictionary size channel property.
Treat WS_CHANNEL_PROPERTY_MAX_SESSION_DICTIONARY_SIZE as a read-only
property, and only allow it to be set upon channel creation.

Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 13:02:31 +02:00
Connor McAdams dc849b0a6d webservices: Check for channel state in WsReceiveMessage.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 13:02:28 +02:00
Connor McAdams 9eb26280f3 webservices: Don't advance binary encoding reader if record type doesn't match.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-20 13:02:25 +02:00
Rémi Bernon 43fe980818 ntdll: Fix main heap struct layout and flags members.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 21:41:49 +02:00
Rémi Bernon 9d34933f24 ntdll: Use a dedicated member for shared heap flag.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 21:41:46 +02:00
Rémi Bernon eb087788db kernel32/tests: Reduce the number of GlobalAlloc size tests.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 21:41:42 +02:00
Rémi Bernon af6dd8eb0c kernel32/tests: Tweak tests results for w7pro64.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 21:41:39 +02:00
Hugh McMaster 498e0da095 regedit: Remove unused WCHAR szHexEditClass from main header.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 17:39:37 +02:00
Hugh McMaster 4b964b8210 regedit: Mark WCHAR szTitle static.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 17:39:34 +02:00
Hugh McMaster a6a92b66c7 regedit: Mark WCHAR szFrameClass static.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 17:39:29 +02:00
Hugh McMaster f55131db39 regedit: Use wide character string literals in regproc.c.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 17:39:23 +02:00
Hugh McMaster 379c90a0eb regedit: Use wide character string literals in main.c.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 17:39:17 +02:00
Hugh McMaster 85fb14ff28 regedit: Use wide character string literals in treeview.c.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 17:38:57 +02:00
Hugh McMaster 039fc87827 regedit: Use wide character string literals in regedit.c.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 17:38:50 +02:00
Hugh McMaster 49df6ad509 regedit: Use wide character string literals in listview.c.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 17:38:44 +02:00
Hugh McMaster f0d9999581 regedit: Use wide character string literals in hexedit.c.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 17:38:39 +02:00