mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
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:
parent
a3d5e1cf55
commit
92ce1ebfdc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue