shdocvw: Don't use typeof as it's not portable.

This commit is contained in:
Rob Shearman 2008-02-26 11:13:14 +00:00 committed by Alexandre Julliard
parent 26ad119d3a
commit 5ef04604f0
1 changed files with 2 additions and 2 deletions

View File

@ -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);