https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bfd02fa107076719c3654…
commit bfd02fa107076719c36548365d5ec62ea62e41a1
Author: Kyle Katarn <contact(a)kcsoftwares.com>
AuthorDate: Sat May 2 11:43:30 2020 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat May 2 18:43:30 2020 +0900
[SNDVOL32] Fix GetDC/ReleaseDC error management (#2713)
GetDC() is called without properly calling ReleaseDC() as required in order to
releases a device context. Similar to #2707
---
base/applications/sndvol32/dialog.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/base/applications/sndvol32/dialog.c b/base/applications/sndvol32/dialog.c
index 5a52272ed8f..1fac34d7bab 100644
--- a/base/applications/sndvol32/dialog.c
+++ b/base/applications/sndvol32/dialog.c
@@ -408,6 +408,8 @@ LoadDialog(
MixerWindow->baseUnit.cx = charSize.cx;
MixerWindow->baseUnit.cy = charSize.cy;
}
+
+ ReleaseDC(NULL, hDC);
}
// assert(MixerWindow->hFont);