projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
It is generally considered a bad idea to dereference an object after the reference...
[reactos.git]
/
reactos
/
ntoskrnl
/
ps
/
query.c
diff --git
a/reactos/ntoskrnl/ps/query.c
b/reactos/ntoskrnl/ps/query.c
index
3e0b252
..
c42ee05
100644
(file)
--- 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;
}