Commit 102d6910 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

comctl32/tests: Fix DC handle leak.

parent 28c35689
......@@ -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;
}
......
......@@ -1023,7 +1023,7 @@ static int system_font_height(void) {
hDC = CreateCompatibleDC(NULL);
GetTextMetricsA(hDC, &tm);
DeleteDC(NULL);
DeleteDC(hDC);
return tm.tmHeight;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment