user32: Remove leftover HINSTANCE16 code from LoadCursor/LoadIcon.

Michael Stefaniuc mstefani at redhat.de
Thu Feb 11 06:52:40 CST 2010


The Wine code doesn't seem to pass a 16bit hinstance to
LoadCursor/LoadIcon; the only calls to those functions from 16bit code
use a 0 hinstance which is fine.
---
 dlls/user32/cursoricon.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c
index d4cdde4..a045914 100644
--- a/dlls/user32/cursoricon.c
+++ b/dlls/user32/cursoricon.c
@@ -1257,9 +1257,6 @@ 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;
-
     /* Get directory resource ID */
 
     if (!(hRsrc = FindResourceW( hInstance, name,
-- 
1.6.6



More information about the wine-patches mailing list