projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Return correct error. Spotted by Thomas.
[reactos.git]
/
reactos
/
ntoskrnl
/
ps
/
cid.c
diff --git
a/reactos/ntoskrnl/ps/cid.c
b/reactos/ntoskrnl/ps/cid.c
index
83eea3b
..
935ca8f
100644
(file)
--- a/
reactos/ntoskrnl/ps/cid.c
+++ b/
reactos/ntoskrnl/ps/cid.c
@@
-139,6
+139,7
@@
PsLookupProcessThreadByCid(IN PCLIENT_ID Cid,
{
PHANDLE_TABLE_ENTRY CidEntry;
PETHREAD FoundThread;
{
PHANDLE_TABLE_ENTRY CidEntry;
PETHREAD FoundThread;
+ NTSTATUS Status = STATUS_INVALID_CID;
PAGED_CODE();
PAGED_CODE();
@@
-157,10
+158,10
@@
PsLookupProcessThreadByCid(IN PCLIENT_ID Cid,
*Process = FoundThread->ThreadsProcess;
}
*Thread = FoundThread;
*Process = FoundThread->ThreadsProcess;
}
*Thread = FoundThread;
-
return
STATUS_SUCCESS;
+
Status =
STATUS_SUCCESS;
}
}
- return S
TATUS_INVALID_PARAMETER
;
+ return S
tatus
;
}
}
@@
-173,6
+174,7
@@
PsLookupThreadByThreadId(IN HANDLE ThreadId,
{
PHANDLE_TABLE_ENTRY CidEntry;
PETHREAD FoundThread;
{
PHANDLE_TABLE_ENTRY CidEntry;
PETHREAD FoundThread;
+ NTSTATUS Status = STATUS_INVALID_CID;
PAGED_CODE();
PAGED_CODE();
@@
-186,10
+188,10
@@
PsLookupThreadByThreadId(IN HANDLE ThreadId,
PsUnlockCidHandle(CidEntry);
*Thread = FoundThread;
PsUnlockCidHandle(CidEntry);
*Thread = FoundThread;
-
return
STATUS_SUCCESS;
+
Status =
STATUS_SUCCESS;
}
}
- return S
TATUS_INVALID_PARAMETER
;
+ return S
tatus
;
}
VOID
}
VOID