Index: dll/win32/kernel32/client/proc.c =================================================================== --- dll/win32/kernel32/client/proc.c (revision 73473) +++ dll/win32/kernel32/client/proc.c (working copy) @@ -2923,12 +2923,16 @@ FILE_NON_DIRECTORY_FILE); } + if (!NT_SUCCESS(Status)) + { + DPRINT1("Open file failed: %lx (%wZ)\n", Status, &PathName); + } + /* Cleanup in preparation for failure or success */ RtlReleaseRelativeName(&SxsWin32RelativePath); if (!NT_SUCCESS(Status)) { /* Failure path, try to understand why */ - DPRINT1("Open file failed: %lx\n", Status); if (RtlIsDosDeviceName_U(lpApplicationName)) { /* If a device is being executed, return this special error code */