rpcrt4/tests: Use GetModuleHandle instead of LoadLibrary.

This commit is contained in:
Paul Vriens 2008-12-15 14:58:29 +01:00 committed by Alexandre Julliard
parent 99eaf51bb7
commit 1aa9e3846c
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ static IPSFactoryBuffer *test_NdrDllGetClassObject(void)
const CLSID PSDispatch = {0x20420, 0, 0, {0xc0, 0, 0, 0, 0, 0, 0, 0x46}};
const CLSID CLSID_Unknown = {0x45678, 0x1234, 0x6666, {0xff, 0x67, 0x45, 0x98, 0x76, 0x12, 0x34, 0x56}};
HRESULT r;
HMODULE hmod = LoadLibraryA("rpcrt4.dll");
HMODULE hmod = GetModuleHandleA("rpcrt4.dll");
void *CStd_QueryInterface = GetProcAddress(hmod, "CStdStubBuffer_QueryInterface");
void *CStd_AddRef = GetProcAddress(hmod, "CStdStubBuffer_AddRef");
void *CStd_Release = GetProcAddress(hmod, "NdrCStdStubBuffer_Release");