shell32/tests: Use GetModuleHandle instead of LoadLibrary.

This commit is contained in:
Paul Vriens 2007-08-16 13:12:27 +02:00 committed by Alexandre Julliard
parent eaad370987
commit 968d305148
1 changed files with 1 additions and 1 deletions

View File

@ -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");