Module: wine Branch: master Commit: 968d30514801f3a49c3807ce4a96d2b26da8b581 URL: http://source.winehq.org/git/wine.git/?a=commit;h=968d30514801f3a49c3807ce4a...
Author: Paul Vriens paul.vriens.wine@gmail.com Date: Thu Aug 16 13:12:27 2007 +0200
shell32/tests: Use GetModuleHandle instead of LoadLibrary.
---
dlls/shell32/tests/shelllink.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c index bdf537e..091522b 100644 --- a/dlls/shell32/tests/shelllink.c +++ b/dlls/shell32/tests/shelllink.c @@ -64,7 +64,7 @@ static LPITEMIDLIST path_to_pidl(const char* path)
if (!pSHSimpleIDListFromPathAW) { - HMODULE hdll=LoadLibraryA("shell32.dll"); + HMODULE hdll=GetModuleHandleA("shell32.dll"); pSHSimpleIDListFromPathAW=(void*)GetProcAddress(hdll, (char*)162); if (!pSHSimpleIDListFromPathAW) trace("SHSimpleIDListFromPathAW not found in shell32.dll\n");