reactos/dll/win32/shell32/wine
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
..
appbar.c [Explorer|Shell32] 2020-03-21 19:13:55 -05:00
brsfolder.c [SHELL32] Enable CopyTo/MoveTo textbox functionality (#3075) 2020-08-20 11:35:14 +09:00
classes.c [SHELL32] HCR_GetIconA(): Properly use icon_idx (#2482) 2020-03-30 12:24:59 +02:00
clipboard.c
control.c
cpanel.h
pidl.c [SHELL32] Big fix for change notification (#3048) 2020-09-03 13:36:31 +09:00
pidl.h
shell32_main.c [Explorer|Shell32] 2020-03-21 19:13:55 -05:00
shell32_main.h [SDK][SHELL32] Augment the internally used IDataObject with some extra formats 2019-10-20 17:10:12 +02:00
shellole.c
shellord.c [SHELL32][SHLWAPI] Forward shell32.ShellMessageBoxW directly to shlwapi.ShellMessageBoxWrapW. (#3179) 2020-09-13 22:44:58 +02:00
shellpath.c [SHELL32] DoGetProductType(): Use RegGetValueW() 2020-04-26 14:16:59 +02:00
shellreg.c
shellstring.c [SHELL32][INCLUDE] Improve CheckEscapesA/W (#2795) 2020-05-28 10:58:26 +09:00
shlmenu.c
shpolicy.c [EXPLORER][SHPOLICY] Implement "NoSimpleStartMenu" policy (#1258) 2019-03-24 14:56:43 +01:00