fusion: Use proper function pointer
Andrew Talbot
andrew.talbot at talbotville.com
Sat Aug 2 16:09:48 CDT 2008
Changelog:
fusion: Use proper function pointer.
diff --git a/dlls/fusion/fusion.c b/dlls/fusion/fusion.c
index ac01cf4..637346c 100644
--- a/dlls/fusion/fusion.c
+++ b/dlls/fusion/fusion.c
@@ -32,6 +32,9 @@
WINE_DEFAULT_DEBUG_CHANNEL(fusion);
+typedef HRESULT (WINAPI *PFNGETCORVERSION)(LPWSTR pbuffer, DWORD cchBuffer,
+ DWORD *dwLength);
+
/******************************************************************
* ClearDownloadCache (FUSION.@)
*/
@@ -89,20 +92,18 @@ HRESULT WINAPI GetAssemblyIdentityFromFile(LPCWSTR pwzFilePath, REFIID riid,
return E_NOTIMPL;
}
-static HRESULT (WINAPI *pGetCORVersion)(LPWSTR pbuffer, DWORD cchBuffer,
- DWORD *dwLength);
-
static HRESULT get_corversion(LPWSTR version, DWORD size)
{
HMODULE hmscoree;
HRESULT hr;
DWORD len;
+ PFNGETCORVERSION pGetCORVersion;
hmscoree = LoadLibraryA("mscoree.dll");
if (!hmscoree)
return E_FAIL;
- pGetCORVersion = (void *)GetProcAddress(hmscoree, "GetCORVersion");
+ pGetCORVersion = (PFNGETCORVERSION)GetProcAddress(hmscoree, "GetCORVersion");
if (!pGetCORVersion)
return E_FAIL;
More information about the wine-patches
mailing list