From 96245a4ae9a71016e6dc6b93d78b3f2a70da9177 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sat, 22 Jan 2005 14:34:54 +0000 Subject: [PATCH] return the status code when probing the buffer failed svn path=/trunk/; revision=13212 --- reactos/ntoskrnl/ps/job.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/ntoskrnl/ps/job.c b/reactos/ntoskrnl/ps/job.c index ac99082aac7..302679ec3f4 100644 --- a/reactos/ntoskrnl/ps/job.c +++ b/reactos/ntoskrnl/ps/job.c @@ -384,6 +384,11 @@ NtOpenJobObject(PHANDLE JobHandle, Status = _SEH_GetExceptionCode(); } _SEH_END; + + if(!NT_SUCCESS(Status)) + { + return Status; + } } if(NT_SUCCESS(Status))