secur32/tests: Use LoadLibrary instead of GetModuleHandle to load advapi32.dll APIs.
This commit is contained in:
parent
870f289680
commit
79511d98b7
|
@ -123,7 +123,7 @@ static void InitFunctionPtrs(void)
|
|||
secdll = LoadLibraryA("secur32.dll");
|
||||
if(!secdll)
|
||||
secdll = LoadLibraryA("security.dll");
|
||||
advapi32dll = GetModuleHandleA("advapi32.dll");
|
||||
advapi32dll = LoadLibraryA("advapi32.dll");
|
||||
|
||||
#define GET_PROC(h, func) p ## func = (void*)GetProcAddress(h, #func)
|
||||
|
||||
|
|
Loading…
Reference in New Issue