cabinet/tests: Use GetModuleHandleA instead of LoadLibraryA.
This commit is contained in:
parent
fc436b92e5
commit
85867205e5
|
@ -62,12 +62,9 @@ CHAR CURR_DIR[MAX_PATH];
|
|||
|
||||
static void init_function_pointers(void)
|
||||
{
|
||||
hCabinet = LoadLibraryA("cabinet.dll");
|
||||
hCabinet = GetModuleHandleA("cabinet.dll");
|
||||
|
||||
if (hCabinet)
|
||||
{
|
||||
pExtract = (void *)GetProcAddress(hCabinet, "Extract");
|
||||
}
|
||||
pExtract = (void *)GetProcAddress(hCabinet, "Extract");
|
||||
}
|
||||
|
||||
/* creates a file with the specified name for tests */
|
||||
|
|
Loading…
Reference in New Issue