Fixed allocation of 16x16 icons.

This commit is contained in:
Juergen Schmied 2000-02-25 20:52:01 +00:00 committed by Alexandre Julliard
parent 52bd50fb85
commit 44016841cf
1 changed files with 6 additions and 3 deletions

View File

@ -868,7 +868,7 @@ HGLOBAL CURSORICON_ExtCopy(HGLOBAL Handle, UINT nType,
}
else
{
int iTargetCX, iTargetCY;
int iTargetCY = iDesiredCY, iTargetCX = iDesiredCX;
LPBYTE pBits;
HANDLE hMem;
HRSRC hRsrc;
@ -936,8 +936,11 @@ HGLOBAL CURSORICON_ExtCopy(HGLOBAL Handle, UINT nType,
pBits = (LPBYTE)LockResource( hMem );
iTargetCY = GetSystemMetrics(SM_CYICON);
iTargetCX = GetSystemMetrics(SM_CXICON);
if(nFlags & LR_DEFAULTSIZE)
{
iTargetCY = GetSystemMetrics(SM_CYICON);
iTargetCX = GetSystemMetrics(SM_CXICON);
}
/* Create a New Icon with the proper dimension
*/