mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
Fix code and typecasting
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user