X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=base%2Fapplications%2Fregedit%2Fchildwnd.c;h=ced601a23c0cdc21c8b5cd13e0b3e3760bfbecc2;hp=9206c43e55e99fe6a21ecc32279423062dfa7d9b;hb=e4a060ead45b9dc87a64408b6d791ea4a5fef55e;hpb=2597cfe258b768473a744df30227f4067252d9b7;ds=sidebyside diff --git a/base/applications/regedit/childwnd.c b/base/applications/regedit/childwnd.c index 9206c43e55e..ced601a23c0 100644 --- a/base/applications/regedit/childwnd.c +++ b/base/applications/regedit/childwnd.c @@ -87,10 +87,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); }