From 5ef04604f0c857683bf0b63dee85cf8d43efe061 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Tue, 26 Feb 2008 11:13:14 +0000 Subject: [PATCH] shdocvw: Don't use typeof as it's not portable. --- dlls/shdocvw/factory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/shdocvw/factory.c b/dlls/shdocvw/factory.c index c8bb51190b..3a4ba9f845 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);