[User32] Fix incorrect check.

Use Lo Word instead of Intersource check.
Fix wine user32 tests.
This commit is contained in:
James Tabor 2021-10-19 15:29:51 -05:00
parent 037c744eb1
commit 83f86b8fdb

View file

@ -156,7 +156,7 @@ RtlGetExpWinVer( HMODULE hModule )
DWORD dwMinorVersion = 10; DWORD dwMinorVersion = 10;
PIMAGE_NT_HEADERS pinth; PIMAGE_NT_HEADERS pinth;
if ( hModule && !((ULONG_PTR)hModule >> 16)) if ( hModule && !LOWORD( ((ULONG_PTR)hModule) ))
{ {
pinth = RtlImageNtHeader( hModule ); pinth = RtlImageNtHeader( hModule );
if ( pinth ) if ( pinth )