https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f2ffd212323d615ea8eda4...
commit f2ffd212323d615ea8eda44dd3e78ed7e30c64da Author: Mark Jansen mark.jansen@reactos.org AuthorDate: Mon May 18 21:39:34 2020 +0200 Commit: Mark Jansen mark.jansen@reactos.org CommitDate: Thu Sep 10 19:45:22 2020 +0200
[SHLWAPI] Fix SHLoadIndirectString executing code when loading a string --- dll/win32/shlwapi/string.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dll/win32/shlwapi/string.c b/dll/win32/shlwapi/string.c index 18a1be3ddcd..cb6489b7030 100644 --- a/dll/win32/shlwapi/string.c +++ b/dll/win32/shlwapi/string.c @@ -2896,7 +2896,11 @@ HRESULT WINAPI SHLoadIndirectString(LPCWSTR src, LPWSTR dst, UINT dst_len, void index_str++; index = atoiW(index_str);
+#ifdef __REACTOS__ + hmod = LoadLibraryExW(dllname, NULL, LOAD_LIBRARY_AS_DATAFILE); +#else hmod = LoadLibraryW(dllname); +#endif if(!hmod) goto end;
if(index < 0)