[ros-diffs] [navaraf] 16860: Initialize DescriptorTranslated->u.Interrupt.Level before calling HalGetInterruptVector. Remember, casting hides bugs! Debugged by Hervé Poussineau.

navaraf at svn.reactos.com navaraf at svn.reactos.com
Fri Jul 29 15:30:26 CEST 2005


Initialize DescriptorTranslated->u.Interrupt.Level before calling
HalGetInterruptVector. Remember, casting hides bugs! Debugged by Hervé
Poussineau.
Modified: trunk/reactos/ntoskrnl/io/pnpmgr.c
  _____  

Modified: trunk/reactos/ntoskrnl/io/pnpmgr.c
--- trunk/reactos/ntoskrnl/io/pnpmgr.c	2005-07-29 13:28:37 UTC (rev
16859)
+++ trunk/reactos/ntoskrnl/io/pnpmgr.c	2005-07-29 13:30:22 UTC (rev
16860)
@@ -1003,6 +1003,7 @@

                else
                   DescriptorRaw->u.Interrupt.Vector =
ResourceDescriptor->u.Interrupt.MinimumVector;
 
+               DescriptorTranslated->u.Interrupt.Level = 0;
                DescriptorTranslated->u.Interrupt.Vector =
HalGetInterruptVector(
                   DeviceNode->ResourceRequirements->InterfaceType,
                   DeviceNode->ResourceRequirements->BusNumber,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050729/6e472c0d/attachment.html


More information about the Ros-diffs mailing list