user32: Don't use HIWORD() on a HINSTANCE.
This commit is contained in:
parent
bbfaf6af75
commit
7442a7f931
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue