[ros-diffs] [ion] 17181: - Return correct error. Spotted by Thomas.
ion at svn.reactos.com
ion at svn.reactos.com
Sun Aug 7 23:48:26 CEST 2005
- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050807/212d3ebd/attachment.html
More information about the Ros-diffs
mailing list