From fe9647d7391854f9b44a74c7f5229861338c0b49 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Tue, 9 Aug 2005 06:28:23 +0000 Subject: [PATCH] It is generally considered a bad idea to dereference an object after the reference failed..... this fixes another wine test and avoids a bugcheck svn path=/trunk/; revision=17232 --- reactos/ntoskrnl/ps/query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ps/query.c b/reactos/ntoskrnl/ps/query.c index 3e0b25202fb..c42ee050a70 100644 --- a/reactos/ntoskrnl/ps/query.c +++ b/reactos/ntoskrnl/ps/query.c @@ -1233,9 +1233,9 @@ NtSetInformationThread (IN HANDLE ThreadHandle, /* Shoult never occure if the data table is correct */ KEBUGCHECK(0); } + ObDereferenceObject (Thread); } - ObDereferenceObject (Thread); - + return Status; }