Drivers that have no I/O status routine should be treated as "ready".


svn path=/trunk/; revision=67783
This commit is contained in:
Aleksandar Andrejevic 2015-05-16 20:06:28 +00:00
parent 37811969c0
commit 199d9183e6

View file

@ -944,7 +944,7 @@ BOOLEAN DosDeviceIoControl(WORD FileHandle, BYTE ControlCode, DWORD Buffer, PWOR
{
/* Device*/
if (Node->InputStatusRoutine && Node->InputStatusRoutine(Node))
if (!Node->InputStatusRoutine || Node->InputStatusRoutine(Node))
{
/* Set the length to 0xFF to mark that it's ready */
*Length = 0xFF;
@ -982,7 +982,7 @@ BOOLEAN DosDeviceIoControl(WORD FileHandle, BYTE ControlCode, DWORD Buffer, PWOR
{
/* Device*/
if (Node->OutputStatusRoutine && Node->OutputStatusRoutine(Node))
if (!Node->OutputStatusRoutine || Node->OutputStatusRoutine(Node))
{
/* Set the length to 0xFF to mark that it's ready */
*Length = 0xFF;