Commit 85867205 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

cabinet/tests: Use GetModuleHandleA instead of LoadLibraryA.

parent fc436b92
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment