user32: Don't cache 16-bit instance resources on the 32-bit side.
This commit is contained in:
parent
cecb3a993c
commit
2919c49d7f
|
@ -1177,10 +1177,8 @@ static HICON CURSORICON_Load(HINSTANCE hInstance, LPCWSTR name,
|
||||||
|
|
||||||
if (!hInstance) hInstance = user32_module; /* Load OEM cursor/icon */
|
if (!hInstance) hInstance = user32_module; /* Load OEM cursor/icon */
|
||||||
|
|
||||||
/* Normalize hInstance (must be uniquely represented for icon cache) */
|
/* don't cache 16-bit instances (FIXME: should never get 16-bit instances in the first place) */
|
||||||
|
if (!HIWORD( hInstance )) loadflags &= ~LR_SHARED;
|
||||||
if (!HIWORD( hInstance ))
|
|
||||||
hInstance = HINSTANCE_32(GetExePtr( HINSTANCE_16(hInstance) ));
|
|
||||||
|
|
||||||
/* Get directory resource ID */
|
/* Get directory resource ID */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue