projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e11896f
)
only return the token handle if creating it succeeded
author
Thomas Bluemel
<thomas@reactsoft.com>
Fri, 25 Mar 2005 18:13:31 +0000
(18:13 +0000)
committer
Thomas Bluemel
<thomas@reactsoft.com>
Fri, 25 Mar 2005 18:13:31 +0000
(18:13 +0000)
svn path=/trunk/; revision=14316
reactos/ntoskrnl/ps/security.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/ps/security.c
b/reactos/ntoskrnl/ps/security.c
index
7c85bd6
..
ef076b3
100644
(file)
--- a/
reactos/ntoskrnl/ps/security.c
+++ b/
reactos/ntoskrnl/ps/security.c
@@
-82,15
+82,18
@@
NtOpenProcessTokenEx(IN HANDLE ProcessHandle,
&hToken);
ObDereferenceObject(Token);
- _SEH_TRY
- {
- *TokenHandle = hToken;
- }
- _SEH_HANDLE
+ if(NT_SUCCESS(Status))
{
- Status = _SEH_GetExceptionCode();
+ _SEH_TRY
+ {
+ *TokenHandle = hToken;
+ }
+ _SEH_HANDLE
+ {
+ Status = _SEH_GetExceptionCode();
+ }
+ _SEH_END;
}
- _SEH_END;
}
return Status;