Michael Stefaniuc : user32: Don't use HIWORD() on a HINSTANCE.
Alexandre Julliard
julliard at winehq.org
Thu Feb 11 11:08:32 CST 2010
Module: wine
Branch: master
Commit: 7442a7f9311b7d0adb5737d6676a6be94e41bf5b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7442a7f9311b7d0adb5737d6676a6be94e41bf5b
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Feb 11 15:26:23 2010 +0100
user32: Don't use HIWORD() on a HINSTANCE.
---
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 */
More information about the wine-cvs
mailing list