mirror of
https://github.com/reactos/reactos.git
synced 2025-06-03 00:10:39 +00:00
[SHLWAPI] Fix SHLoadIndirectString executing code when loading a string
This commit is contained in:
parent
922a956805
commit
f2ffd21232
1 changed files with 4 additions and 0 deletions
|
@ -2896,7 +2896,11 @@ HRESULT WINAPI SHLoadIndirectString(LPCWSTR src, LPWSTR dst, UINT dst_len, void
|
||||||
index_str++;
|
index_str++;
|
||||||
index = atoiW(index_str);
|
index = atoiW(index_str);
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
hmod = LoadLibraryExW(dllname, NULL, LOAD_LIBRARY_AS_DATAFILE);
|
||||||
|
#else
|
||||||
hmod = LoadLibraryW(dllname);
|
hmod = LoadLibraryW(dllname);
|
||||||
|
#endif
|
||||||
if(!hmod) goto end;
|
if(!hmod) goto end;
|
||||||
|
|
||||||
if(index < 0)
|
if(index < 0)
|
||||||
|
|
Loading…
Reference in a new issue