From 7442a7f9311b7d0adb5737d6676a6be94e41bf5b Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Thu, 11 Feb 2010 15:26:23 +0100 Subject: [PATCH] user32: Don't use HIWORD() on a HINSTANCE. --- dlls/user32/cursoricon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c index d4cdde4342b..a003cb06e93 100644 --- a/dlls/user32/cursoricon.c +++ b/dlls/user32/cursoricon.c @@ -1258,7 +1258,7 @@ static HICON CURSORICON_Load(HINSTANCE hInstance, LPCWSTR name, if (!hInstance) hInstance = user32_module; /* Load OEM cursor/icon */ /* don't cache 16-bit instances (FIXME: should never get 16-bit instances in the first place) */ - if (!HIWORD( hInstance )) loadflags &= ~LR_SHARED; + if ((ULONG_PTR)hInstance >> 16 == 0) loadflags &= ~LR_SHARED; /* Get directory resource ID */ -- 2.11.4.GIT