https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a27f0debca4c0fe8cd916…
commit a27f0debca4c0fe8cd916d2406124f9d30ae5dbe
Author: Joachim Henze <Joachim.Henze(a)reactos.org>
AuthorDate: Tue Sep 15 20:54:50 2020 +0200
Commit: Joachim Henze <Joachim.Henze(a)reactos.org>
CommitDate: Tue Sep 15 20:54:50 2020 +0200
[MMIXER] Fix NULL dereference CORE-17276
This lead to a crash of winmm:mixer
during "GCCLin_x86 on Test VBox".
The crash was exposed when new code paths
were activated by 0.4.15-dev-791-g
6d7ebc20481a587bd19e8a8049317113071b0817
I do intend to port this commit back into 0.4.14RC.
---
sdk/lib/drivers/sound/mmixer/sup.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sdk/lib/drivers/sound/mmixer/sup.c b/sdk/lib/drivers/sound/mmixer/sup.c
index 06f342b12e8..4fa8c080309 100644
--- a/sdk/lib/drivers/sound/mmixer/sup.c
+++ b/sdk/lib/drivers/sound/mmixer/sup.c
@@ -690,6 +690,8 @@ MMixerSetGetVolumeControlDetails(
/* get input */
Input = (LPMIXERCONTROLDETAILS_UNSIGNED)MixerControlDetails->paDetails;
+ if (!Input)
+ return MM_STATUS_UNSUCCESSFUL; /* to prevent dereferencing NULL */
if (bSet)
{
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6d7ebc20481a587bd19e8…
commit 6d7ebc20481a587bd19e8a8049317113071b0817
Author: Joachim Henze <Joachim.Henze(a)reactos.org>
AuthorDate: Mon Sep 14 17:12:16 2020 +0200
Commit: Joachim Henze <Joachim.Henze(a)reactos.org>
CommitDate: Mon Sep 14 17:12:16 2020 +0200
[WDMAUD.DRV] Workaround multiple issues with AC97 driver from rapps
By taking alternative code-paths in WdmAud and bypassing Sysaudio.
This relies on the patch 0.4.15-dev-765-g
b8e936a57b4770e133772cf2dd66f30671a1524b
It fixes the following bugs/regressions:
-CORE-13202 Unhandled exception from wdmaud.drv when recording sound in Scratch 1.4 leads to app-crash
-CORE-13488 A deadlock in "DiabloII" character selection screen and "The Lion King II"
-CORE-8726/CORE-9986/CORE-16564 AC97 driver is now working in the same session where driver was installed, no reboot-orgies needed anymore
-CORE-9981 almost 100% fixed, DosBox + Commander Keen6 properly plays music instead of garbled output,
same improvement for ScummVM 2.0 with Monkey Island 2
The playback is not yet *entirely* perfect, still a few hiccups now and then, but
by orders of magnitude better than before.
---
dll/win32/wdmaud.drv/wdmaud.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dll/win32/wdmaud.drv/wdmaud.c b/dll/win32/wdmaud.drv/wdmaud.c
index dfd8ea0361e..45308b3aff2 100644
--- a/dll/win32/wdmaud.drv/wdmaud.c
+++ b/dll/win32/wdmaud.drv/wdmaud.c
@@ -18,6 +18,7 @@
#include <debug.h>
#include <mmebuddy_debug.h>
+#define USE_MMIXER_LIB
#ifndef USE_MMIXER_LIB
#define FUNC_NAME(x) x##ByLegacy
#else