From 199d9183e62ead8e7f21141c791be40c4d509d4b Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Sat, 16 May 2015 20:06:28 +0000 Subject: [PATCH] [NTVDM] Drivers that have no I/O status routine should be treated as "ready". svn path=/trunk/; revision=67783 --- reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dosfiles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dosfiles.c b/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dosfiles.c index 6bf76edd60c..6cef5e76e62 100644 --- a/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dosfiles.c +++ b/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dosfiles.c @@ -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;