Fix a type error.
This commit is contained in:
parent
7fe016faaf
commit
e13eec4d73
|
@ -1620,7 +1620,7 @@ _FX VOID ProtectScreen(HWND hWnd) {
|
||||||
HMODULE hDll = GetModuleHandleW(L"user32.dll");
|
HMODULE hDll = GetModuleHandleW(L"user32.dll");
|
||||||
if (hDll != NULL && hDll != INVALID_HANDLE_VALUE) {
|
if (hDll != NULL && hDll != INVALID_HANDLE_VALUE) {
|
||||||
typedef BOOL(*LPSETWINDOWDISPLAYAFFINITY)(HWND, DWORD);
|
typedef BOOL(*LPSETWINDOWDISPLAYAFFINITY)(HWND, DWORD);
|
||||||
LPSETWINDOWDISPLAYAFFINITY swda = GetProcAddress(hDll, "SetWindowDisplayAffinity");
|
LPSETWINDOWDISPLAYAFFINITY swda =(LPSETWINDOWDISPLAYAFFINITY) GetProcAddress(hDll, "SetWindowDisplayAffinity");
|
||||||
if (swda) {
|
if (swda) {
|
||||||
swda(hWnd, 0x00000001);
|
swda(hWnd, 0x00000001);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue