- Improve debug messages to include failure status.

svn path=/trunk/; revision=59736
This commit is contained in:
Aleksey Bragin 2013-08-14 14:08:40 +00:00
parent 8b235bf105
commit adde38d4dd

View file

@ -42,7 +42,7 @@ RtlpMapFile(PUNICODE_STRING ImageFileName,
FILE_SYNCHRONOUS_IO_NONALERT | FILE_NON_DIRECTORY_FILE);
if (!NT_SUCCESS(Status))
{
DPRINT1("Failed to read image file from disk\n");
DPRINT1("Failed to read image file from disk, Status = 0x%08X\n", Status);
return Status;
}
@ -56,7 +56,7 @@ RtlpMapFile(PUNICODE_STRING ImageFileName,
hFile);
if (!NT_SUCCESS(Status))
{
DPRINT1("Failed to create section for image file\n");
DPRINT1("Failed to create section for image file, Status = 0x%08X\n", Status);
}
ZwClose(hFile);