Author: tfaber
Date: Mon Jun 12 19:51:29 2017
New Revision: 75015
URL:
http://svn.reactos.org/svn/reactos?rev=75015&view=rev
Log:
[HDAUDBUS]
- Initialize the correct variable in HDA_FDOQueryBusRelations. Should fix random crashes
due to uninitialized value use.
CORE-12707 #resolve
Modified:
trunk/reactos/drivers/wdm/audio/hdaudbus/fdo.cpp
Modified: trunk/reactos/drivers/wdm/audio/hdaudbus/fdo.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/hdaudbus…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/hdaudbus/fdo.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/hdaudbus/fdo.cpp [iso-8859-1] Mon Jun 12 19:51:29
2017
@@ -662,7 +662,7 @@
if (!DeviceRelations)
return STATUS_INSUFFICIENT_RESOURCES;
- DeviceCount = 0;
+ DeviceRelations->Count = 0;
for (CodecIndex = 0; CodecIndex < HDA_MAX_CODECS; CodecIndex++)
{
if (DeviceExtension->Codecs[CodecIndex] == NULL)