Author: hbelusca
Date: Fri Dec 23 11:43:21 2016
New Revision: 73480
URL:
http://svn.reactos.org/svn/reactos?rev=73480&view=rev
Log:
[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 :) )
Modified:
trunk/reactos/dll/win32/kernel32/client/proc.c
Modified: trunk/reactos/dll/win32/kernel32/client/proc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/proc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/proc.c [iso-8859-1] Fri Dec 23 11:43:21 2016
@@ -2923,13 +2923,16 @@
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 */
RtlReleaseRelativeName(&SxsWin32RelativePath);
if (!NT_SUCCESS(Status))
{
/* Failure path, try to understand why */
- DPRINT1("Open file failed: %lx (%wZ)\n", Status, &PathName);
if (RtlIsDosDeviceName_U(lpApplicationName))
{
/* If a device is being executed, return this special error code */