mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 14:11:55 +00:00
[MSPAINT] Fix handle leaks about memory bitmap
This fixes CORE-18919. CORE-18867
This commit is contained in:
parent
bfc6a119c5
commit
a9284b5664
2 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ LRESULT CPaletteWindow::OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& b
|
|||
/* Transfer bits (hDC <-- hMemDC) */
|
||||
::BitBlt(hDC, 0, 0, rcClient.right, rcClient.bottom, hMemDC, 0, 0, SRCCOPY);
|
||||
|
||||
::SelectObject(hMemDC, hbmOld);
|
||||
::DeleteObject(::SelectObject(hMemDC, hbmOld));
|
||||
::DeleteDC(hMemDC);
|
||||
EndPaint(&ps);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue