mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
- Return correct error. Spotted by Thomas.
svn path=/trunk/; revision=17181
This commit is contained in:
parent
c5ed8ceb14
commit
bac942f34d
1 changed files with 6 additions and 4 deletions
|
@ -139,6 +139,7 @@ PsLookupProcessThreadByCid(IN PCLIENT_ID Cid,
|
||||||
{
|
{
|
||||||
PHANDLE_TABLE_ENTRY CidEntry;
|
PHANDLE_TABLE_ENTRY CidEntry;
|
||||||
PETHREAD FoundThread;
|
PETHREAD FoundThread;
|
||||||
|
NTSTATUS Status = STATUS_INVALID_CID;
|
||||||
|
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
|
@ -157,10 +158,10 @@ PsLookupProcessThreadByCid(IN PCLIENT_ID Cid,
|
||||||
*Process = FoundThread->ThreadsProcess;
|
*Process = FoundThread->ThreadsProcess;
|
||||||
}
|
}
|
||||||
*Thread = FoundThread;
|
*Thread = FoundThread;
|
||||||
return STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
return STATUS_INVALID_PARAMETER;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -173,6 +174,7 @@ PsLookupThreadByThreadId(IN HANDLE ThreadId,
|
||||||
{
|
{
|
||||||
PHANDLE_TABLE_ENTRY CidEntry;
|
PHANDLE_TABLE_ENTRY CidEntry;
|
||||||
PETHREAD FoundThread;
|
PETHREAD FoundThread;
|
||||||
|
NTSTATUS Status = STATUS_INVALID_CID;
|
||||||
|
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
|
@ -186,10 +188,10 @@ PsLookupThreadByThreadId(IN HANDLE ThreadId,
|
||||||
PsUnlockCidHandle(CidEntry);
|
PsUnlockCidHandle(CidEntry);
|
||||||
|
|
||||||
*Thread = FoundThread;
|
*Thread = FoundThread;
|
||||||
return STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
return STATUS_INVALID_PARAMETER;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
Loading…
Reference in a new issue