Replace magic mask in WNDPROC with macro's

This commit is contained in:
Anonymous Maarten 2023-06-15 03:08:27 +02:00
parent aedef9680f
commit 57c5aebe3e

View File

@ -390,7 +390,7 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
switch (uMsg) {
case WM_KEYDOWN:
if (lParam & 0x40000000) {
if (HIWORD(lParam) & KF_REPEAT) {
return DefWindowProcA(hWnd, WM_KEYDOWN, wParam, lParam);
}
keyCode = wParam;