mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 12:13:29 +08:00
[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
6d7ebc2048
I do intend to port this commit back into 0.4.14RC.
This commit is contained in:
parent
0dfc7f06b7
commit
a27f0debca
@ -690,6 +690,8 @@ MMixerSetGetVolumeControlDetails(
|
||||
|
||||
/* get input */
|
||||
Input = (LPMIXERCONTROLDETAILS_UNSIGNED)MixerControlDetails->paDetails;
|
||||
if (!Input)
|
||||
return MM_STATUS_UNSUCCESSFUL; /* to prevent dereferencing NULL */
|
||||
|
||||
if (bSet)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user