user32: Don't use HIWORD() on a HINSTANCE.

oldstable
Michael Stefaniuc 2010-02-11 15:26:23 +01:00 committed by Alexandre Julliard
parent bbfaf6af75
commit 7442a7f931
1 changed files with 1 additions and 1 deletions

View File

@ -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 */