]> source.dussan.org Git - tigervnc.git/commitdiff
MinGW tweak: Force cast from `int (*)()' to `void*'.
authorPeter Åstrand <astrand@cendio.se>
Tue, 9 Dec 2008 10:53:50 +0000 (10:53 +0000)
committerPeter Åstrand <astrand@cendio.se>
Tue, 9 Dec 2008 10:53:50 +0000 (10:53 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3334 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/rfb_win32/DynamicFn.cxx

index e933f2492f0dd9de9956fd400efed3f7b822da69..b71ea7b34c9deef1dfcd01585b1d3cb45bbbc1ea 100644 (file)
@@ -32,7 +32,7 @@ DynamicFnBase::DynamicFnBase(const TCHAR* dllName, const char* fnName) : dllHand
     vlog.info("DLL %s not found (%d)", (const char*)CStr(dllName), GetLastError());
     return;
   }
-  fnPtr = GetProcAddress(dllHandle, fnName);
+  fnPtr = (void*) GetProcAddress(dllHandle, fnName);
   if (!fnPtr)
     vlog.info("proc %s not found in %s (%d)", fnName, (const char*)CStr(dllName), GetLastError());
 }