cabinet/tests: Use GetModuleHandleA instead of LoadLibraryA.

This commit is contained in:
Paul Vriens 2007-08-14 19:07:45 +02:00 committed by Alexandre Julliard
parent fc436b92e5
commit 85867205e5
1 changed files with 2 additions and 5 deletions

View File

@ -62,12 +62,9 @@ CHAR CURR_DIR[MAX_PATH];
static void init_function_pointers(void) 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 */ /* creates a file with the specified name for tests */