From 0a96e52ca203a2afaff64f0466bfd905f0407c49 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Tue, 7 Oct 2003 22:49:44 +0000 Subject: [PATCH] When registering a dll, search the dll's directory for dll dependencies too. --- programs/regsvr32/regsvr32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/regsvr32/regsvr32.c b/programs/regsvr32/regsvr32.c index 10e56d37ee..83859a5356 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)