summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0b60c94)
Also partly revert r66781.
By Stefan G.
svn path=/trunk/; revision=66784
if (!NT_SUCCESS(Result))
{
/* Set the last error and fail */
if (!NT_SUCCESS(Result))
{
/* Set the last error and fail */
- NtCurrentTeb()->LastErrorValue = RtlNtStatusToDosError(Result);
/* INCLUDES ****************************************************************/
#include <ntoskrnl.h>
/* INCLUDES ****************************************************************/
#include <ntoskrnl.h>
#define NDEBUG
#include <debug.h>
#define NDEBUG
#include <debug.h>
if (!NewStack)
{
/* Panic in user-mode */
if (!NewStack)
{
/* Panic in user-mode */
+ NtCurrentTeb()->LastErrorValue = ERROR_NOT_ENOUGH_MEMORY;
return STATUS_NO_MEMORY;
}
return STATUS_NO_MEMORY;
}