user32: Don't use HIWORD() on a HINSTANCE.
Michael Stefaniuc
mstefani at redhat.de
Thu Feb 11 08:26:23 CST 2010
---
dlls/user32/cursoricon.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c
index d4cdde4..a003cb0 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 */
--
1.6.4.4
More information about the wine-patches
mailing list