Commit 44016841 authored by Juergen Schmied's avatar Juergen Schmied Committed by Alexandre Julliard

Fixed allocation of 16x16 icons.

parent 52bd50fb
...@@ -868,7 +868,7 @@ HGLOBAL CURSORICON_ExtCopy(HGLOBAL Handle, UINT nType, ...@@ -868,7 +868,7 @@ HGLOBAL CURSORICON_ExtCopy(HGLOBAL Handle, UINT nType,
} }
else else
{ {
int iTargetCX, iTargetCY; int iTargetCY = iDesiredCY, iTargetCX = iDesiredCX;
LPBYTE pBits; LPBYTE pBits;
HANDLE hMem; HANDLE hMem;
HRSRC hRsrc; HRSRC hRsrc;
...@@ -936,8 +936,11 @@ HGLOBAL CURSORICON_ExtCopy(HGLOBAL Handle, UINT nType, ...@@ -936,8 +936,11 @@ HGLOBAL CURSORICON_ExtCopy(HGLOBAL Handle, UINT nType,
pBits = (LPBYTE)LockResource( hMem ); pBits = (LPBYTE)LockResource( hMem );
iTargetCY = GetSystemMetrics(SM_CYICON); if(nFlags & LR_DEFAULTSIZE)
iTargetCX = GetSystemMetrics(SM_CXICON); {
iTargetCY = GetSystemMetrics(SM_CYICON);
iTargetCX = GetSystemMetrics(SM_CXICON);
}
/* Create a New Icon with the proper dimension /* Create a New Icon with the proper dimension
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment