Skip to content

Commit 196ce6a

Browse files
Kyle Katarnvgalnt
authored andcommitted
[SNDVOL32] Fix GetDC/ReleaseDC error management (reactos#2713)
GetDC() is called without properly calling ReleaseDC() as required in order to releases a device context. Similar to reactos#2707
1 parent 6e5e799 commit 196ce6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/applications/sndvol32/dialog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ LoadDialog(
408408
MixerWindow->baseUnit.cx = charSize.cx;
409409
MixerWindow->baseUnit.cy = charSize.cy;
410410
}
411+
412+
ReleaseDC(NULL, hDC);
411413
}
412414

413415
// assert(MixerWindow->hFont);

0 commit comments

Comments
 (0)