Fix a type error.

This commit is contained in:
love-code-yeyixiao 2024-03-02 16:17:36 +08:00
parent 7fe016faaf
commit e13eec4d73
1 changed files with 1 additions and 1 deletions

View File

@ -1620,7 +1620,7 @@ _FX VOID ProtectScreen(HWND hWnd) {
HMODULE hDll = GetModuleHandleW(L"user32.dll");
if (hDll != NULL && hDll != INVALID_HANDLE_VALUE) {
typedef BOOL(*LPSETWINDOWDISPLAYAFFINITY)(HWND, DWORD);
LPSETWINDOWDISPLAYAFFINITY swda = GetProcAddress(hDll, "SetWindowDisplayAffinity");
LPSETWINDOWDISPLAYAFFINITY swda =(LPSETWINDOWDISPLAYAFFINITY) GetProcAddress(hDll, "SetWindowDisplayAffinity");
if (swda) {
swda(hWnd, 0x00000001);
}