Rob Shearman : shdocvw: Don't use typeof as it's not portable.
Alexandre Julliard
julliard at winehq.org
Wed Feb 27 08:03:11 CST 2008
Module: wine
Branch: master
Commit: 5ef04604f0c857683bf0b63dee85cf8d43efe061
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5ef04604f0c857683bf0b63dee85cf8d43efe061
Author: Rob Shearman <rob at codeweavers.com>
Date: Tue Feb 26 11:13:14 2008 +0000
shdocvw: Don't use typeof as it's not portable.
---
dlls/shdocvw/factory.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/shdocvw/factory.c b/dlls/shdocvw/factory.c
index c8bb511..3a4ba9f 100644
--- a/dlls/shdocvw/factory.c
+++ b/dlls/shdocvw/factory.c
@@ -175,14 +175,14 @@ HRESULT register_class_object(BOOL do_reg)
static HRESULT reg_install(LPCSTR section, STRTABLEA *strtable)
{
- typeof(RegInstallA) *pRegInstall;
+ HRESULT (WINAPI *pRegInstall)(HMODULE hm, LPCSTR pszSection, const STRTABLEA* pstTable);
HMODULE hadvpack;
HRESULT hres;
static const WCHAR advpackW[] = {'a','d','v','p','a','c','k','.','d','l','l',0};
hadvpack = LoadLibraryW(advpackW);
- pRegInstall = (typeof(RegInstallA)*)GetProcAddress(hadvpack, "RegInstall");
+ pRegInstall = (void *)GetProcAddress(hadvpack, "RegInstall");
hres = pRegInstall(shdocvw_hinstance, section, strtable);
More information about the wine-cvs
mailing list