diff --git a/win32ss/user/user32/windows/window.c b/win32ss/user/user32/windows/window.c index 60c9feb47f5..d414259515c 100644 --- a/win32ss/user/user32/windows/window.c +++ b/win32ss/user/user32/windows/window.c @@ -156,7 +156,7 @@ RtlGetExpWinVer( HMODULE hModule ) DWORD dwMinorVersion = 10; PIMAGE_NT_HEADERS pinth; - if ( hModule && !((ULONG_PTR)hModule >> 16)) + if ( hModule && !LOWORD( ((ULONG_PTR)hModule) )) { pinth = RtlImageNtHeader( hModule ); if ( pinth )