reactos/dll/win32/shlwapi
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
..
lang [SHLWAPI] Add French translation for size units 2020-08-17 01:32:37 +03:00
assoc.c [SHLWAPI] Sync with Wine Staging 3.3. CORE-14434 2018-03-04 13:17:11 +01:00
clist.c [SHLWAPI] Sync with Wine Staging 3.3. CORE-14434 2018-03-04 13:17:11 +01:00
CMakeLists.txt [CMAKE] Implement PCH builds with target_precompile_headers. CORE-16905 2020-06-06 21:58:41 +03:00
istream.c [SHLWAPI] Import Wine commit c8175e6c7a7 (Fix Stat() method for file streams) by Nikolay Sivov. 2019-09-22 11:42:01 +02:00
msgbox.c [SHLWAPI] Sync with Wine Staging 3.3. CORE-14434 2018-03-04 13:17:11 +01:00
ordinal.c [SHELL32][SHLWAPI] Forward shell32.ShellMessageBoxW directly to shlwapi.ShellMessageBoxWrapW. (#3179) 2020-09-13 22:44:58 +02:00
path.c [SHLWAPI] Sync with Wine Staging 3.3. CORE-14434 2018-03-04 13:17:11 +01:00
precomp.h [SHLWAPI] Sync with Wine Staging 3.3. CORE-14434 2018-03-04 13:17:11 +01:00
reg.c [SHLWAPI] Fix SHRegGetCLSIDKeyW 2020-05-17 17:09:04 +02:00
regstream.c [SHLWAPI] Sync with Wine Staging 3.3. CORE-14434 2018-03-04 13:17:11 +01:00
resource.h [SHLWAPI] Localize StrFormatByteSizeA/W (#3051) 2020-08-17 06:40:39 +09:00
rosordinal.c [SHLWAPI] Implement SHAreIconsEqual 2018-03-05 22:43:18 +01:00
shlwapi.rc [SHLWAPI] lang/*.rc : Enforce aa-BB filenames (#2816) 2020-06-06 18:25:43 +02:00
shlwapi.spec [SHLWAPI] Add version limit for export from NT 5.1 to NT5.2, because it was dropped since NT6 2020-04-26 20:20:40 +02:00
shlwapi_main.c [SHLWAPI] Sync with Wine Staging 3.3. CORE-14434 2018-03-04 13:17:11 +01:00
shlwapi_ros.diff Fix remaining text file line endings in the tree. (#18) 2017-10-06 15:00:36 +02:00
stopwatch.c [SHLWAPI] Sync with Wine Staging 3.3. CORE-14434 2018-03-04 13:17:11 +01:00
string.c [SHLWAPI] Fix SHLoadIndirectString executing code when loading a string 2020-09-10 19:45:22 +02:00
thread.c [SHLWAPI] Sync with Wine Staging 3.3. CORE-14434 2018-03-04 13:17:11 +01:00
url.c [SHLWAPI] Sync with Wine Staging 3.3. CORE-14434 2018-03-04 13:17:11 +01:00
version.rc
wsprintf.c [SHLWAPI] Sync with Wine Staging 3.3. CORE-14434 2018-03-04 13:17:11 +01:00