mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
initialize DirectoryHandle, add a DPRINT which displays the status returned by NtCreateFile in case of error
svn path=/trunk/; revision=30525
This commit is contained in:
parent
fc85b8befa
commit
133a4f5385
1 changed files with 3 additions and 2 deletions
|
@ -94,7 +94,7 @@ CreateDirectoryW (
|
|||
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||
IO_STATUS_BLOCK IoStatusBlock;
|
||||
UNICODE_STRING NtPathU;
|
||||
HANDLE DirectoryHandle;
|
||||
HANDLE DirectoryHandle = NULL;
|
||||
NTSTATUS Status;
|
||||
|
||||
DPRINT ("lpPathName %S lpSecurityAttributes %p\n",
|
||||
|
@ -134,6 +134,7 @@ CreateDirectoryW (
|
|||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT("NtCreateFile failed with Status %lx\n", Status);
|
||||
SetLastErrorByStatus(Status);
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -522,7 +523,7 @@ RemoveDirectoryW (
|
|||
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||
IO_STATUS_BLOCK IoStatusBlock;
|
||||
UNICODE_STRING NtPathU;
|
||||
HANDLE DirectoryHandle;
|
||||
HANDLE DirectoryHandle = NULL;
|
||||
NTSTATUS Status;
|
||||
|
||||
DPRINT("lpPathName %S\n", lpPathName);
|
||||
|
|
Loading…
Reference in a new issue