mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 06:08:23 +00:00
Christoph von Wittich: fix for bug 824 ("memory leak in welcome").
-LoadBitmap without DeleteObject -SelectObject is used with wrong DC svn path=/trunk/; revision=18096
This commit is contained in:
parent
714a0377ae
commit
18a5faec31
|
@ -143,6 +143,7 @@ WinMain(HINSTANCE hInst,
|
||||||
ulInnerWidth = BitmapInfo.bmWidth;
|
ulInnerWidth = BitmapInfo.bmWidth;
|
||||||
ulInnerHeight = (ulInnerWidth * 3) / 4;
|
ulInnerHeight = (ulInnerWidth * 3) / 4;
|
||||||
ulTitleHeight = BitmapInfo.bmHeight + 3;
|
ulTitleHeight = BitmapInfo.bmHeight + 3;
|
||||||
|
DeleteObject(hTitleBitmap);
|
||||||
}
|
}
|
||||||
ulInnerHeight -= GetSystemMetrics(SM_CYCAPTION);
|
ulInnerHeight -= GetSystemMetrics(SM_CYCAPTION);
|
||||||
|
|
||||||
|
@ -485,7 +486,7 @@ PaintBanner(HDC hdc, LPRECT rcPanel)
|
||||||
rcPanel->right - rcPanel->left,
|
rcPanel->right - rcPanel->left,
|
||||||
rcPanel->bottom - 3,
|
rcPanel->bottom - 3,
|
||||||
hdcMem, 0, 0, SRCCOPY);
|
hdcMem, 0, 0, SRCCOPY);
|
||||||
SelectObject(hdc, hOldBitmap);
|
SelectObject(hdcMem, hOldBitmap);
|
||||||
|
|
||||||
/* Dark blue line */
|
/* Dark blue line */
|
||||||
hOldBrush = SelectObject(hdc, hbrDarkBlue);
|
hOldBrush = SelectObject(hdc, hbrDarkBlue);
|
||||||
|
|
Loading…
Reference in a new issue