Skip to content

Commit

Permalink
Fix code and typecasting
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Jun 7, 2024
1 parent 4d8bf31 commit 0d5bde6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dosbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 0d5bde6

Please sign in to comment.