From d615a12c31c621d112e3c2a3f71e6fe0f032b09b Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Mon, 23 Jan 2006 18:46:45 +0000 Subject: [PATCH] revert the last change - it's not correct since the GDI handles were not allocated before. svn path=/trunk/; revision=21003 --- reactos/subsys/system/explorer/shell/mainframe.cpp | 1 - reactos/subsys/system/explorer/utility/window.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/reactos/subsys/system/explorer/shell/mainframe.cpp b/reactos/subsys/system/explorer/shell/mainframe.cpp index e8d296bd61d..e2de0371b9d 100644 --- a/reactos/subsys/system/explorer/shell/mainframe.cpp +++ b/reactos/subsys/system/explorer/shell/mainframe.cpp @@ -1433,7 +1433,6 @@ LRESULT SDIMainFrame::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam) HBRUSH lastBrush = SelectBrush(canvas, GetStockBrush(COLOR_SPLITBAR)); Rectangle(canvas, rt.left, rt.top-1, rt.right, rt.bottom+1); SelectObject(canvas, lastBrush); - DeleteObject(lastBrush); } break;} diff --git a/reactos/subsys/system/explorer/utility/window.cpp b/reactos/subsys/system/explorer/utility/window.cpp index 3f6c598b0a8..1eb43bf8b61 100644 --- a/reactos/subsys/system/explorer/utility/window.cpp +++ b/reactos/subsys/system/explorer/utility/window.cpp @@ -397,7 +397,6 @@ LRESULT ChildWindow::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam) SetRect(&rc, rt.left, rt.top-1, rt.right, rt.bottom+1); DrawEdge(canvas, &rc, EDGE_RAISED, BF_RECT); SelectObject(canvas, lastBrush); - DeleteObject(lastBrush); break;} case WM_SETCURSOR: