Commit Graph

144274 Commits

Author SHA1 Message Date
Gijs Vermeulen e2e053ea57 winecfg: Disable virtual desktop when using macdrv.
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit e2db7ef7f4)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-10-18 20:32:59 +02:00
Alexandre Julliard 4f9701317b explorer: Store the graphics driver basename instead of the full path.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit d47be63fae)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-10-18 20:32:59 +02:00
Hans Leidekker 2ed9701ab9 winhttp: Use ws.ifelse.io for websocket tests.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51631
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 9f6e39e8b9)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-10-05 21:55:43 +02:00
Zebediah Figura f61a3b7d15 wine.inf: Install the protocol database at etc\protocol.
Unlike Unix, on Windows the file name is not plural.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 03dcb36979)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-10-03 23:03:13 +02:00
Francois Gouget cd5311958c make_unicode: Add support for the 720 codepage (Arabic, Farsi and Urdu).
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit a1bae9f288)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-10-03 22:53:32 +02:00
Anton Baskanov 40b962f9ef fonts: Fix dotaccent glyph position in Small Fonts.
Signed-off-by: Anton Baskanov <baskanov@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 80ef009fc1)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-10-03 22:47:59 +02:00
Anton Baskanov 7347cbd07a fonts: Fix breve glyph position in 16px MS Sans Serif.
Signed-off-by: Anton Baskanov <baskanov@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 9ecca23a32)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-10-03 22:46:31 +02:00
Haidong Yu bd11172b7a shell32: Fix a memory leak.
Signed-off-by: Haidong Yu <yuhaidong@uniontech.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 56976159ab)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-10-03 20:55:40 +02:00
Haidong Yu ef54f3c227 shell32: Fix a memory leak.
Signed-off-by: Haidong Yu <yuhaidong@uniontech.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 479b659463)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-10-03 20:54:49 +02:00
Rémi Bernon 531247b84e dinput: Prevent a device interface leak when enumerating.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=36263
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 52aacd2377)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-10-03 20:53:32 +02:00
Damjan Jovanovic e35da6ed01 shell32: Fix a lock leak.
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 401de24b89)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-10-03 20:52:56 +02:00
Torge Matthies 96a1855bb9 winex11.drv: Avoid race condition in X11 error handling.
The err_callback* globals need to be protected from being overwritten
before X11DRV_check_error is called, otherwise no or the wrong error
handler might be called.

Signed-off-by: Torge Matthies <openglfreak@googlemail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 2e4bfa642e)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-10-03 20:43:32 +02:00
Piotr Caban 3b224895b0 winemac.drv: Don't filter non active displays out.
On Windows 10 the DISPLAY_DEVICE_ACTIVE flag is set even if monitor is
in power
saving mode or switched off. Monitors without DISPLAY_DEVICE_ACTIVE are
only reported when display is disabled. This doesn't match with
CGDisplayIsActive function.

Current code causes rendering problems when native .NET is used. When
monitors are updated when in power saving mode (e.g. due to race on
machine wake-up) we might end up with no monitors being enumerated by
EnumDisplayMonitors.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 5400db15ca)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-10-03 20:41:46 +02:00
Brendan Shanks d7e26f2f7b configure: Work around Xcode 12's ld assuming 16KB page sizes.
Starting in Xcode 12, ld rounds page sizes and alignments up to 16KB
for all architectures. Passing '-segalign 0x1000' resets this back to
4KB.

Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 11fd7e8394)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-27 00:16:47 +02:00
Matteo Bruni 9af691e74a wined3d: Don't skip FFP vertex pipeline state handlers when STATE_VDECL is dirty.
This fixes the non-default ARB shader backend, broken since
2ddb6b66a7, although the
fundamental issue was there long before that.

Originally the STATE_VDECL handler did some bookkeeping (basically,
computing what is now the stream info data) that's a prerequisite for
running other state handlers. For this reason a somewhat complicated
dance was put in place, with the dependent handlers returning right
away until the STATE_VDECL handler could prepare everything up and the
STATE_VDECL handler in turn explicitly calling these "downstream"
handlers so that they could do their job. With the commit mentioned
above the state dirty flags are cleared after the corresponding
handlers are executed, which means that the relevant handlers are
skipped twice and some stuff is never set up properly.

Stream info is computed by context_apply_draw_state() before going
through the state handler table for a long time now, getting rid of
this obscure handler interdependency. So let's just get rid of the
skipping altogether.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit e106bbdd39)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-27 00:10:36 +02:00
Austin English 44da7b267a readme: Document Libera Chat migration.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit d9a8be2a46)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-27 00:08:13 +02:00
Haoyang Chen 328d834ad9 gdi32: Fix a memory leak.
Signed-off-by: Haoyang Chen <chenhaoyang@uniontech.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 4b9c4e4201)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-26 22:32:41 +02:00
Owen Rudge fb53228568 winspool: Filter invalid characters when creating the PPD filename.
Fixes potential crash when trying to print if a CUPS printer name
contains an asterisk.

Signed-off-by: Owen Rudge <orudge@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 6b906e8237)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-15 00:57:39 +02:00
Paul Gofman 5cf41e251d vcruntime140_1: Support two continuation addresses for catchblock.
MSVC generates that sometimes when there is a goto from catch block.

Fixes a crash in Company of Heroes 2.

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 049bd08d8b)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-15 00:54:53 +02:00
Zhiyi Zhang d7f35aacea ntoskrnl.exe: Exclude large integer APIs from relay tracing.
Similar to 8d7ec7968d

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit d7a4d757ce)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-14 23:50:23 +02:00
Dmitry Timoshkov 8c985b2b66 ntdll: Exclude large integer APIs from relay tracing.
These builtin functions use stdcall calling convention, but compilers
reference them without stdcall declarations.

Otherwise ucrtbase initialization code crashes with +relay enabled when
compiled with clang as a PE build.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 8d7ec7968d)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-14 23:43:07 +02:00
Arkadiusz Hiler f6144283a6 kernelbase: Fix GetFileVersionInfo*() crashes with malformed resources.
Some Unity games ship with an encrypted Assembly-CSharp.dll, including
the resources directory, yet the engine still calls GetFileVersionInfoSizeW()
on those files. This may results in a page fault when trying to find the
version resource and takes the whole process down.

The change fixes crashes when launching Home Behind 2 and Crown Trick.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50075
Signed-off-by: Arkadiusz Hiler <ahiler@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit e51ae86937)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-14 22:58:02 +02:00
Andrew Eikum fbe42005a5 windowscodecs: Avoid types deprecated in libtiff 4.3.
dlls/windowscodecs/libtiff.c:256:5: warning: ‘uint16’ is deprecated [-Wdeprecated-declarations]

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 5e3758a70f)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-14 22:54:26 +02:00
Jacek Caban f2dad112ac msvcrt: Add sincos to importlib.
Fixes cross compilation with GCC 11, which may optimize a pair of sin(),
cos() calls to a single sincos() call, which is not exported by any
msvcrt version.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit f013127647)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-13 23:18:53 +02:00
Nguyễn Chính Hữu 08d4d30a12 wined3d: Add GPU information for NVIDIA GT 1030.
Signed-off-by: Nguyễn Chính Hữu <huupoke12@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 8854fd2b07)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-13 23:10:05 +02:00
Brendan Shanks 3ff3988763 wined3d: Add GPU information for Intel UHD Graphics 630.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit f074862504)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-13 23:09:08 +02:00
Alistair Leslie-Hughes 2f06215a8e gdi32: Don't override FontSubstitutes on a DPI only change.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36010
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 7763efa347)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-12 22:33:14 +02:00
Nikolay Sivov c8d12b4e05 shcore/stream: Implement generic CopyTo().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit e7f60e39f6)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-10 00:48:49 +02:00
Piotr Caban cdab0e40b9 msvcrt: Improve memmove performance on i386 and x86_64 architectures.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49663
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 38c4904960)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-10 00:35:32 +02:00
Esme Povirk a0b7fb69e7 gdiplus: Implement reference counting for private font families.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50896
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit a554079860)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-10 00:11:39 +02:00
Haoyang Chen bf92d6bedf gdiplus: Avoid filtering of special characters.
Symbols such as ←  should also be displayed.

Signed-off-by: Haoyang Chen <chenhaoyang@uniontech.com>
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 43e2563f44)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-10 00:11:26 +02:00
Gijs Vermeulen ee79875f34 amstream: Handle AMMSF_RENDERALLSTREAMS in IAMMultiMediaStream::OpenFile().
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 3319526fda)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-09 22:24:16 +02:00
Zebediah Figura 57ed063ec0 wtsapi32: Implement WTSEnumerateProcessesW().
Based on a patch by Sebastian Lackner.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=29903
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 5f8c7c2563)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-09 22:22:19 +02:00
Zebediah Figura ea49fd72f0 include: Introduce winetest_push_context() and winetest_pop_context().
Based on vkd3d's vkd3d_test_set_context(), but adding support for a stack of
context prefixes, to more easily accomodate tests with nested loops.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit af39a1b0bc)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-09 22:19:59 +02:00
Zebediah Figura f78df1dd43 include: Factor out winetest_printf().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 2cdf6f0f30)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-09 22:19:12 +02:00
Francois Gouget 598a21be9c tests: Add ignore_exceptions().
This lets tests signal that for a while exceptions are expected and
should not be counted as test failures.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 4ac37c4e24)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-09 22:16:51 +02:00
Francois Gouget 0aabd08c53 tests: Trace the filename in winetest_wait_child_process().
We want the filename next to the line number, just like in every other
trace.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 092130e2aa)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-09 22:15:59 +02:00
Louis Lenders 360ce18577 kernel32: Remove entry for BasepDebugDump.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51117
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 7aba0e541e)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-09 21:47:25 +02:00
Louis Lenders 1b64d29849 advapi32: Add stub for LsaEnumerateAccounts.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50830
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit c74508d225)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-09 21:37:28 +02:00
Sebastian Lackner 717e8d5366 ntdll: Return STATUS_INVALID_DEVICE_REQUEST when trying to call NtReadFile on directory.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 43de1407e9)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-09 21:36:33 +02:00
Qian Hong 1abbaaa221 atl: Implement AtlAxDialogBox().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=32749
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit f987d8ac3b)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-08 21:14:56 +02:00
Piotr Caban 1d23985d64 msvcrt: Fix _unDName crash when demangling class function pointer.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 7a1e7cbeee)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-08 00:46:09 +02:00
Piotr Caban 737adb2684 msvcrt/tests: Cleanup datatype demangle tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit d91160835a)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-08 00:45:56 +02:00
Piotr Caban 53ee588abb msvcrt/tests: Link to malloc/free functions in cpp tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit d7cc3d6583)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-08 00:45:42 +02:00
Nikolay Sivov 499448fb21 gdi32: Enumerate scalable fonts with zero charset mask as OEM.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51041
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 8241d21ae0)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-08 00:43:09 +02:00
Paul Gofman d312b7ac50 ddraw/tests: Also test RT caps for software device.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 6991d7befa)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-08 00:35:56 +02:00
Damjan Jovanovic 94254f4a14 shell32/tests: Fix test failures from ad412b11a7.
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit a3295e3831)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-08 00:31:49 +02:00
Damjan Jovanovic 26c1f7c83b shell32: Implement IID_IContextMenu in CreateViewObject() methods for shell folders that support it.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=39841
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit ad412b11a7)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-08 00:30:00 +02:00
Zebediah Figura 5703c14110 msi: Check for a NULL return from deformat_string() when checking for failure.
An empty string is valid, and can occur if e.g. a nonexistent property is
expanded.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51091
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 814f18ab75)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-08 00:18:00 +02:00
Damjan Jovanovic df085a31ff shell32: Use a smaller range of shellview menu IDs in our IContextMenu functions.
The shellview menu IDs are very large, eg. FCIDM_SHVIEW_OPEN is 0x7102,
while applications want menu IDs to fit into a small range, eg. 1-1000 for
Explorer++. This causes our IContextMenu_QueryContextMenu() functions to
leave out most menu options. We should rebase our shellview menu ids
by -0x7000 so they occupy a smaller range.

This gets both Explorer++ and Double Commander to show the correct
right-click menus.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=24893
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 2b6458b757)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-08 00:04:23 +02:00