mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:33:01 +00:00
[KERNEL32]: Addendum to r73479: display the file that failed to be opened before releasing SxsWin32RelativePath as PathName might be equal to SxsWin32RelativePath.RelativeName. Spotted by Mark Jansen (actually he got it right at the beginning :) )
svn path=/trunk/; revision=73480
This commit is contained in:
parent
a01ab28f62
commit
35f9007fc4
1 changed files with 4 additions and 1 deletions
|
@ -2923,13 +2923,16 @@ StartScan:
|
||||||
FILE_NON_DIRECTORY_FILE);
|
FILE_NON_DIRECTORY_FILE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Failure path, display which file failed to open */
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
|
DPRINT1("Open file failed: %lx (%wZ)\n", Status, &PathName);
|
||||||
|
|
||||||
/* Cleanup in preparation for failure or success */
|
/* Cleanup in preparation for failure or success */
|
||||||
RtlReleaseRelativeName(&SxsWin32RelativePath);
|
RtlReleaseRelativeName(&SxsWin32RelativePath);
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* Failure path, try to understand why */
|
/* Failure path, try to understand why */
|
||||||
DPRINT1("Open file failed: %lx (%wZ)\n", Status, &PathName);
|
|
||||||
if (RtlIsDosDeviceName_U(lpApplicationName))
|
if (RtlIsDosDeviceName_U(lpApplicationName))
|
||||||
{
|
{
|
||||||
/* If a device is being executed, return this special error code */
|
/* If a device is being executed, return this special error code */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue