don't return a random status code in case of probing failed, initialize the Status variable first

svn path=/trunk/; revision=13316
This commit is contained in:
Thomas Bluemel 2005-01-26 17:54:26 +00:00
parent a3d5e1cf55
commit 92ce1ebfdc

View file

@ -726,7 +726,6 @@ NtCreatePagingFile(IN PUNICODE_STRING FileName,
IN PLARGE_INTEGER MaximumSize,
IN ULONG Reserved)
{
NTSTATUS Status;
OBJECT_ATTRIBUTES ObjectAttributes;
HANDLE FileHandle;
IO_STATUS_BLOCK IoStatus;
@ -747,6 +746,7 @@ NtCreatePagingFile(IN PUNICODE_STRING FileName,
KPROCESSOR_MODE PreviousMode;
UNICODE_STRING CapturedFileName;
LARGE_INTEGER SafeInitialSize, SafeMaximumSize;
NTSTATUS Status = STATUS_SUCCESS;
DPRINT("NtCreatePagingFile(FileName %wZ, InitialSize %I64d)\n",
FileName, InitialSize->QuadPart);