projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
922a956
)
[SHLWAPI] Fix SHLoadIndirectString executing code when loading a string
2809/head
author
Mark Jansen
<mark.jansen@reactos.org>
Mon, 18 May 2020 19:39:34 +0000
(21:39 +0200)
committer
Mark Jansen
<mark.jansen@reactos.org>
Thu, 10 Sep 2020 17:45:22 +0000
(19:45 +0200)
dll/win32/shlwapi/string.c
patch
|
blob
|
history
diff --git
a/dll/win32/shlwapi/string.c
b/dll/win32/shlwapi/string.c
index
18a1be3
..
cb6489b
100644
(file)
--- 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)