https://git.reactos.org/?p=reactos.git;a=commitdiff;h=be014129a578b41adf7b8…
commit be014129a578b41adf7b8fce5ee406cde3a4aa3e
Author: Jose Carlos Jesus <zecarlos1957(a)hotmail.com>
AuthorDate: Thu Dec 30 22:22:18 2021 +0000
Commit: Stanislav Motylkov <x86corez(a)gmail.com>
CommitDate: Tue Oct 25 17:42:39 2022 +0300
[ACCESS][MAIN] Do not delete system stock object
---
dll/cpl/access/display.c | 2 --
dll/cpl/main/keyboard.c | 1 -
2 files changed, 3 deletions(-)
diff --git a/dll/cpl/access/display.c b/dll/cpl/access/display.c
index 05e88f1e691..843e4a1024e 100644
--- a/dll/cpl/access/display.c
+++ b/dll/cpl/access/display.c
@@ -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
diff --git a/dll/cpl/main/keyboard.c b/dll/cpl/main/keyboard.c
index 813c9996863..c3f7b1ce69c 100644
--- a/dll/cpl/main/keyboard.c
+++ b/dll/cpl/main/keyboard.c
@@ -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