Skip to content

Commit

Permalink
[User32] Fix incorrect check.
Browse files Browse the repository at this point in the history
Use Lo Word instead of Intersource check.
Fix wine user32 tests.
  • Loading branch information
jimtabor committed Oct 19, 2021
1 parent 037c744 commit 83f86b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win32ss/user/user32/windows/window.c
Expand Up @@ -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 )
Expand Down

2 comments on commit 83f86b8

@katahiromz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

((ULONG_PTR)hModule >> 16) is hi-word.

@JoachimHenze
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attention: This commit did introduce regression https://jira.reactos.org/browse/CORE-18949

Please sign in to comment.