Preload more dlls for Vista and 7 without KB2533623

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6700 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2016-02-04 18:32:01 +00:00
parent 7ddcbee988
commit a0d918b472
2 changed files with 18 additions and 4 deletions

View file

@ -1139,7 +1139,7 @@ HMODULE NSISCALL LoadSystemLibrary(LPCSTR name)
cch = 0; // \\?\ paths so we have to settle for just the name.
wsprintf(path + cch, fmt, TEXT("\\") + (!cch || path[cch-1] == '\\'), name);
return LoadLibrary(path);
return LoadLibraryEx(path, NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
}
/**