Module: wine Branch: master Commit: 85867205e5ce945c71531a7c703848b386117c66 URL: http://source.winehq.org/git/wine.git/?a=commit;h=85867205e5ce945c71531a7c70...
Author: Paul Vriens paul.vriens.wine@gmail.com Date: Tue Aug 14 19:07:45 2007 +0200
cabinet/tests: Use GetModuleHandleA instead of LoadLibraryA.
---
dlls/cabinet/tests/extract.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/cabinet/tests/extract.c b/dlls/cabinet/tests/extract.c index ad2fbb5..ef441c4 100644 --- a/dlls/cabinet/tests/extract.c +++ b/dlls/cabinet/tests/extract.c @@ -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 */