diff --git a/programs/regsvr32/regsvr32.c b/programs/regsvr32/regsvr32.c index 10e56d37ee8..83859a53566 100644 --- a/programs/regsvr32/regsvr32.c +++ b/programs/regsvr32/regsvr32.c @@ -82,7 +82,7 @@ VOID *LoadProc(char* strDll, char* procName, HMODULE* DllHandle) { VOID* (*proc)(void); - *DllHandle = LoadLibrary(strDll); + *DllHandle = LoadLibraryEx(strDll, 0, LOAD_WITH_ALTERED_SEARCH_PATH); if(!*DllHandle) { if(!Silent)