- Return correct error. Spotted by Thomas.
Modified: trunk/reactos/ntoskrnl/ps/cid.c
_____
Modified: trunk/reactos/ntoskrnl/ps/cid.c
--- trunk/reactos/ntoskrnl/ps/cid.c 2005-08-07 21:45:12 UTC (rev
17180)
+++ trunk/reactos/ntoskrnl/ps/cid.c 2005-08-07 21:48:14 UTC (rev
17181)
@@ -139,6 +139,7 @@
{
PHANDLE_TABLE_ENTRY CidEntry;
PETHREAD FoundThread;
+ NTSTATUS Status = STATUS_INVALID_CID;
PAGED_CODE();
@@ -157,10 +158,10 @@
*Process = FoundThread->ThreadsProcess;
}
*Thread = FoundThread;
- return STATUS_SUCCESS;
+ Status = STATUS_SUCCESS;
}
- return STATUS_INVALID_PARAMETER;
+ return Status;
}
@@ -173,6 +174,7 @@
{
PHANDLE_TABLE_ENTRY CidEntry;
PETHREAD FoundThread;
+ NTSTATUS Status = STATUS_INVALID_CID;
PAGED_CODE();
@@ -186,10 +188,10 @@
PsUnlockCidHandle(CidEntry);
*Thread = FoundThread;
- return STATUS_SUCCESS;
+ Status = STATUS_SUCCESS;
}
- return STATUS_INVALID_PARAMETER;
+ return Status;
}
VOID