From 83f86b8fdb5619bd4f790987c0a93a527d5c3e62 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Tue, 19 Oct 2021 15:29:51 -0500 Subject: [PATCH] [User32] Fix incorrect check. Use Lo Word instead of Intersource check. Fix wine user32 tests. --- win32ss/user/user32/windows/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )