diff --git a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c index 1e7171a61f9..bb56cb2c159 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); }