diff options
-rw-r--r-- | win32/PlatWin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index c61a67ca9..c92b274cb 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1304,7 +1304,8 @@ public: // Use GetProcAddress to get a pointer to the relevant function. virtual Function *FindFunction(const char *name) { if (h != NULL) { - return reinterpret_cast<Function*>( ::GetProcAddress(h, name) ); + return static_cast<Function*>( + (void *)(::GetProcAddress(h, name))); } else return NULL; } |