diff --git a/src/dosbox.cpp b/src/dosbox.cpp index 7f4abb86dc..ef8bb31568 100644 --- a/src/dosbox.cpp +++ b/src/dosbox.cpp @@ -109,7 +109,7 @@ void ApplyPreventCapMenu(void); void ApplyPreventCap(void) { #ifdef WIN32 - HANDLE *usr = GetModuleHandle("USER32.DLL"); + HMODULE usr = (HMODULE)GetModuleHandle("USER32.DLL"); if (usr) { BOOL (WINAPI *__SetWindowDisplayAffinity)(HWND hWnd,DWORD dwAffinity) = (BOOL (WINAPI*)(HWND,DWORD))GetProcAddress(usr,"SetWindowDisplayAffinity");