Fixed DC leak.

This commit is contained in:
Huw D M Davies 2000-05-05 18:18:31 +00:00 committed by Alexandre Julliard
parent bb3c164f73
commit 2be78d412f
1 changed files with 0 additions and 3 deletions

View File

@ -1075,8 +1075,6 @@ TREEVIEW_Refresh (HWND hwnd, HDC hdc)
GetClientRect (hwnd, &rect);
if ((rect.left-rect.right ==0) || (rect.top-rect.bottom==0)) return;
hdc=GetDC (hwnd);
infoPtr->cdmode=TREEVIEW_SendCustomDrawNotify(hwnd,CDDS_PREPAINT,hdc,rect);
@ -2405,7 +2403,6 @@ TREEVIEW_Paint (HWND hwnd, WPARAM wParam, LPARAM lParam)
TRACE("\n");
hdc = wParam==0 ? BeginPaint (hwnd, &ps) : (HDC)wParam;
TREEVIEW_Refresh (hwnd, hdc);
ReleaseDC(hwnd,hdc);
if(!wParam) EndPaint (hwnd, &ps);
TRACE("done\n");