Module: wine Branch: master Commit: 102d69105059dc05ff632a75213af21c377c859c URL: https://source.winehq.org/git/wine.git/?a=commit;h=102d69105059dc05ff632a752...
Author: Thomas Faber thomas.faber@reactos.org Date: Tue Nov 23 19:08:03 2021 -0500
comctl32/tests: Fix DC handle leak.
Signed-off-by: Thomas Faber thomas.faber@reactos.org Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/comctl32/tests/rebar.c | 2 +- dlls/comctl32/tests/toolbar.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/tests/rebar.c b/dlls/comctl32/tests/rebar.c index d0b201a8763..63449d4d457 100644 --- a/dlls/comctl32/tests/rebar.c +++ b/dlls/comctl32/tests/rebar.c @@ -70,7 +70,7 @@ static void init_system_font_height(void) {
hDC = CreateCompatibleDC(NULL); GetTextMetricsA(hDC, &tm); - DeleteDC(NULL); + DeleteDC(hDC);
system_font_height = tm.tmHeight; } diff --git a/dlls/comctl32/tests/toolbar.c b/dlls/comctl32/tests/toolbar.c index 87b4611d056..d238e9f1071 100644 --- a/dlls/comctl32/tests/toolbar.c +++ b/dlls/comctl32/tests/toolbar.c @@ -1023,7 +1023,7 @@ static int system_font_height(void) {
hDC = CreateCompatibleDC(NULL); GetTextMetricsA(hDC, &tm); - DeleteDC(NULL); + DeleteDC(hDC);
return tm.tmHeight; }