msi/tests: Be verbose when GetProcAddress fails.

This commit is contained in:
Paul Vriens 2007-08-21 13:51:23 +02:00 committed by Alexandre Julliard
parent 28025d64ef
commit f581a1cbef
1 changed files with 9 additions and 2 deletions

View File

@ -869,8 +869,15 @@ static void init_functionpointers(void)
{ {
HMODULE hmsi = GetModuleHandleA("msi.dll"); HMODULE hmsi = GetModuleHandleA("msi.dll");
pMsiQueryComponentStateA = (void*)GetProcAddress(hmsi, "MsiQueryComponentStateA"); #define GET_PROC(func) \
pMsiSourceListGetInfoA = (void*)GetProcAddress(hmsi, "MsiSourceListGetInfoA"); p ## func = (void*)GetProcAddress(hmsi, #func); \
if(!p ## func) \
trace("GetProcAddress(%s) failed\n", #func);
GET_PROC(MsiQueryComponentStateA);
GET_PROC(MsiSourceListGetInfoA);
#undef GET_PROC
} }
static BOOL check_record(MSIHANDLE rec, UINT field, LPCSTR val) static BOOL check_record(MSIHANDLE rec, UINT field, LPCSTR val)