diff --git a/reactos/dll/win32/user32/windows/input.c b/reactos/dll/win32/user32/windows/input.c index 4257d41c50d..ee8a90d050f 100644 --- a/reactos/dll/win32/user32/windows/input.c +++ b/reactos/dll/win32/user32/windows/input.c @@ -109,7 +109,7 @@ BOOL STDCALL EnableWindow(HWND hWnd, BOOL bEnable) { - LONG Style = NtUserGetWindowLong(hWnd, GWL_STYLE, FALSE); + LONG Style = GetWindowLongW(hWnd, GWL_STYLE); /* check if updating is needed */ UINT bIsDisabled = (Style & WS_DISABLED); if ( (bIsDisabled && bEnable) || (!bIsDisabled && !bEnable) )