mirror of
https://github.com/reactos/reactos.git
synced 2024-07-07 21:25:05 +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;
|
||||
ulInnerHeight = (ulInnerWidth * 3) / 4;
|
||||
ulTitleHeight = BitmapInfo.bmHeight + 3;
|
||||
DeleteObject(hTitleBitmap);
|
||||
}
|
||||
ulInnerHeight -= GetSystemMetrics(SM_CYCAPTION);
|
||||
|
||||
|
@ -485,7 +486,7 @@ PaintBanner(HDC hdc, LPRECT rcPanel)
|
|||
rcPanel->right - rcPanel->left,
|
||||
rcPanel->bottom - 3,
|
||||
hdcMem, 0, 0, SRCCOPY);
|
||||
SelectObject(hdc, hOldBitmap);
|
||||
SelectObject(hdcMem, hOldBitmap);
|
||||
|
||||
/* Dark blue line */
|
||||
hOldBrush = SelectObject(hdc, hbrDarkBlue);
|
||||
|
|
Loading…
Reference in a new issue