Commit 968d3051 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

shell32/tests: Use GetModuleHandle instead of LoadLibrary.

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