[SHLWAPI] Fix SHLoadIndirectString executing code when loading a string 2809/head
authorMark Jansen <mark.jansen@reactos.org>
Mon, 18 May 2020 19:39:34 +0000 (21:39 +0200)
committerMark Jansen <mark.jansen@reactos.org>
Thu, 10 Sep 2020 17:45:22 +0000 (19:45 +0200)
dll/win32/shlwapi/string.c

index 18a1be3..cb6489b 100644 (file)
@@ -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)