mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
[I_KNEW_IT]
- InterlockedDecrement(JeromesBuildFailures) svn path=/trunk/; revision=64878
This commit is contained in:
@@ -1765,7 +1765,7 @@ IntClassDestroyIcon(HANDLE hCurIcon)
|
||||
return FALSE;
|
||||
}
|
||||
/* Note: IntDestroyCurIconObject will remove our reference for us! */
|
||||
Ret = IntDestroyCurIconObject(CurIcon, TRUE);
|
||||
Ret = IntDestroyCurIconObject(CurIcon, GetW32ProcessInfo());
|
||||
if (!Ret)
|
||||
{
|
||||
ERR("hCurIcon was not Destroyed!\n");
|
||||
|
||||
@@ -1052,7 +1052,7 @@ IntDefWindowProc(
|
||||
x = (ClientRect.right - ClientRect.left - UserGetSystemMetrics(SM_CXICON)) / 2;
|
||||
y = (ClientRect.bottom - ClientRect.top - UserGetSystemMetrics(SM_CYICON)) / 2;
|
||||
UserDrawIconEx( hDC, x, y, pIcon, 0, 0, 0, 0, DI_NORMAL | DI_COMPAT | DI_DEFAULTSIZE );
|
||||
UserDereferenceObject(pIcon)
|
||||
UserDereferenceObject(pIcon);
|
||||
}
|
||||
#endif
|
||||
IntEndPaint(Wnd, &Ps);
|
||||
@@ -1161,10 +1161,15 @@ PCURICON_OBJECT FASTCALL NC_IconForWindow( PWND pWnd )
|
||||
|
||||
hIcon = UserGetProp(pWnd, gpsi->atomIconSmProp);
|
||||
if (!hIcon) hIcon = UserGetProp(pWnd, gpsi->atomIconProp);
|
||||
#ifdef NEW_CURSORICON
|
||||
if (!hIcon && pWnd->pcls->spicnSm)
|
||||
return pWnd->pcls->spicnSm;
|
||||
if (!hIcon && pWnd->pcls->spicn)
|
||||
return pWnd->pcls->spicn;
|
||||
#else
|
||||
if (!hIcon) hIcon = pWnd->pcls->hIconSm;
|
||||
if (!hIcon) hIcon = pWnd->pcls->hIcon;
|
||||
#endif
|
||||
|
||||
if (!hIcon && (pWnd->style & DS_MODALFRAME))
|
||||
{
|
||||
|
||||
@@ -403,7 +403,11 @@ UserGetDCEx(PWND Wnd OPTIONAL, HANDLE ClipRegion, ULONG Flags)
|
||||
Flags |= DCX_CLIPCHILDREN;
|
||||
}
|
||||
/* If minized with icon in the set, we are forced to be cheap! */
|
||||
#ifdef NEW_CURSORICON
|
||||
if (Wnd->style & WS_MINIMIZE && Wnd->pcls->spicn)
|
||||
#else
|
||||
if (Wnd->style & WS_MINIMIZE && Wnd->pcls->hIcon)
|
||||
#endif
|
||||
{
|
||||
Flags |= DCX_CACHE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user