From a3209eaf3ec157e2e7b46b4f373ba6a984e914ca Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Tue, 25 Jan 2005 00:05:56 +0000 Subject: [PATCH] return error status in case probing the parameters failed in IoCreateFile() svn path=/trunk/; revision=13260 --- reactos/ntoskrnl/io/create.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/ntoskrnl/io/create.c b/reactos/ntoskrnl/io/create.c index f82fd5b7ade..d0b92ccbe54 100644 --- a/reactos/ntoskrnl/io/create.c +++ b/reactos/ntoskrnl/io/create.c @@ -409,6 +409,11 @@ IoCreateFile(OUT PHANDLE FileHandle, Status = _SEH_GetExceptionCode(); } _SEH_END; + + if(!NT_SUCCESS(Status)) + { + return Status; + } } else {