reactos/dll
Hermès Bélusca-Maïto 14599b0a37
[SHELL32][SHLWAPI] Forward shell32.ShellMessageBoxW directly to shlwapi.ShellMessageBoxWrapW. (#3179)
This makes ShellMessageBoxW use the correct implementation where the
text buffer size is dynamic, instead of having a too small hardcoded
size.

Fixes CORE-17271.
See also PR #3172 by Kyle Katarn, supplemented with some ideas from
Mark Jansen.

However we cannot straightforwardly implement ShellMessageBoxA around
ShellMessageBoxW, by converting some parameters from ANSI to UNICODE,
because there may be some variadic ANSI strings, associated with '%s'
printf-like formatters inside the format string, that would also need
to be converted; however there is no way for us to find these and perform
the conversion ourselves.
Therefore, we re-implement ShellMessageBoxA by doing a copy-paste ANSI
adaptation of the shlwapi.ShellMessageBoxWrapW function.

Note that, on Vista+ onwards, shlwapi implements both ShellMessageBoxA/W,
and shell32 directly forwards these exports to shlwapi, thus avoiding
these workarounds.

[PSDK] Explicily use WINAPIV for the variadic ShellMessageBoxA/W functions.

[INCLUDE/REACTOS] Add ShellMessageBoxWrapW in shlwapi_undoc.h .
2020-09-13 22:44:58 +02:00
..
3rdparty [CMAKE] Remove obsolete 'CMAKE_CXX_COMPILER_VERSION' checks (#2981) 2020-07-18 15:37:29 +02:00
apisets [MSVCRT] Fix some architecture specific exports 2020-09-13 15:37:29 +02:00
appcompat [SHIMLIB] Fix gcc8 build crashing when using shims 2020-04-07 20:47:47 +02:00
cpl [INPUT.CPL] Update Hebrew translation (#3121) 2020-09-08 23:01:56 +02:00
directx [BOOT][DIRECTX][SHELL32] Unneeded semicolons (trivial) (#3133) 2020-09-08 21:57:13 +02:00
keyboard [FORMATTING] [CMAKE] Remove space in 'if (' (#2847) 2020-05-26 20:24:02 +02:00
nls [CMAKE] Replace custom functions to built-in ones 2020-04-16 15:59:38 +03:00
np [NFS] Fix a typo in the precompiled header. 2019-04-28 01:42:52 +02:00
ntdll [KERNEL32_VISTA][NTDLL_VISTA][RTL_VISTA] Move Vista Rtl functions from kernel32_vista and ntdll_vista to rtl_vista (#3149) 2020-09-12 15:04:02 +02:00
opengl [MESA] Fix 'ATTRIB_h' typo 2020-08-30 02:00:57 +03:00
shellext [NTOBJSHEX] Update Polish (pl-PL) translation (#3175) 2020-09-13 18:22:11 +03:00
win32 [SHELL32][SHLWAPI] Forward shell32.ShellMessageBoxW directly to shlwapi.ShellMessageBoxWrapW. (#3179) 2020-09-13 22:44:58 +02:00
CMakeLists.txt