Paul Vriens : msi/tests: Be verbose when GetProcAddress fails.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Aug 21 15:22:18 CDT 2007
Module: wine
Branch: master
Commit: f581a1cbef4553865036ded89fe7b98137a5562b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f581a1cbef4553865036ded89fe7b98137a5562b
Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date: Tue Aug 21 13:51:23 2007 +0200
msi/tests: Be verbose when GetProcAddress fails.
---
dlls/msi/tests/install.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c
index 778d05a..f3de7e7 100644
--- a/dlls/msi/tests/install.c
+++ b/dlls/msi/tests/install.c
@@ -869,8 +869,15 @@ static void init_functionpointers(void)
{
HMODULE hmsi = GetModuleHandleA("msi.dll");
- pMsiQueryComponentStateA = (void*)GetProcAddress(hmsi, "MsiQueryComponentStateA");
- pMsiSourceListGetInfoA = (void*)GetProcAddress(hmsi, "MsiSourceListGetInfoA");
+#define GET_PROC(func) \
+ 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)
More information about the wine-cvs
mailing list