Gerald Pfeifer : regedit: Remove variable hdc which is not really used from OnPaint.
Alexandre Julliard
julliard at winehq.org
Mon May 3 11:54:08 CDT 2010
Module: wine
Branch: master
Commit: d9dbfa7d7c1fd78b15c5d889b83ffdaeb0d933e7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d9dbfa7d7c1fd78b15c5d889b83ffdaeb0d933e7
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Sat May 1 16:36:49 2010 +0200
regedit: Remove variable hdc which is not really used from OnPaint.
---
programs/regedit/childwnd.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c
index 1e7171a..bb56cb2 100644
--- a/programs/regedit/childwnd.c
+++ b/programs/regedit/childwnd.c
@@ -94,10 +94,9 @@ static void OnPaint(HWND hWnd)
{
PAINTSTRUCT ps;
RECT rt;
- HDC hdc;
GetClientRect(hWnd, &rt);
- hdc = BeginPaint(hWnd, &ps);
+ BeginPaint(hWnd, &ps);
FillRect(ps.hdc, &rt, GetSysColorBrush(COLOR_BTNFACE));
EndPaint(hWnd, &ps);
}
More information about the wine-cvs
mailing list