[ACCESS][MAIN] Do not delete system stock object

This commit is contained in:
Jose Carlos Jesus 2021-12-30 22:22:18 +00:00 committed by Stanislav Motylkov
parent 126afdaa6f
commit be014129a5
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92
2 changed files with 0 additions and 3 deletions

View file

@ -209,7 +209,6 @@ DisplayPageProc(HWND hwndDlg,
HDC hDC = GetDC(hwndDlg);
HBRUSH hBrush = GetSysColorBrush(COLOR_BTNTEXT);
FillRect(hDC, &pGlobalData->rcCaret, hBrush);
DeleteObject(hBrush);
ReleaseDC(hwndDlg, hDC);
}
else
@ -229,7 +228,6 @@ DisplayPageProc(HWND hwndDlg,
HDC hDC = GetDC(hwndDlg);
HBRUSH hBrush = GetSysColorBrush(COLOR_BTNTEXT);
FillRect(hDC, &pGlobalData->rcCaret, hBrush);
DeleteObject(hBrush);
ReleaseDC(hwndDlg, hDC);
}
else

View file

@ -196,7 +196,6 @@ KeyboardSpeedProc(IN HWND hwndDlg,
HDC hDC = GetDC(hwndDlg);
HBRUSH hBrush = GetSysColorBrush(COLOR_BTNTEXT);
FillRect(hDC, &pSpeedData->rcCursor, hBrush);
DeleteObject(hBrush);
ReleaseDC(hwndDlg, hDC);
}
else