Author: ion Date: Sun Aug 4 20:46:55 2013 New Revision: 59642
URL: http://svn.reactos.org/svn/reactos?rev=59642&view=rev Log: [KERNEL32]: Fix incorrect bracing which was causing SearchPath failures to enter a weird code path. Fix a debug print.
Modified: trunk/reactos/dll/win32/kernel32/client/path.c trunk/reactos/dll/win32/kernel32/client/proc.c
Modified: trunk/reactos/dll/win32/kernel32/client/path.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/p... ============================================================================== --- trunk/reactos/dll/win32/kernel32/client/path.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/client/path.c [iso-8859-1] Sun Aug 4 20:46:55 2013 @@ -401,7 +401,7 @@ BaseComputeProcessExePath(IN LPWSTR FullPath) { PBASE_SEARCH_PATH_TYPE PathOrder; - DPRINT1("Computing EXE path: %wZ\n", FullPath); + DPRINT1("Computing EXE path: %S\n", FullPath);
/* Check if we should use the current directory */ PathOrder = NeedCurrentDirectoryForExePathW(FullPath) ?
Modified: trunk/reactos/dll/win32/kernel32/client/proc.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/p... ============================================================================== --- trunk/reactos/dll/win32/kernel32/client/proc.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/client/proc.c [iso-8859-1] Sun Aug 4 20:46:55 2013 @@ -2733,11 +2733,11 @@ /* This was a directory, fail later on */ Length = 0; } - } - else - { - /* It's a file! */ - Length++; + else + { + /* It's a file! */ + Length++; + } }
DPRINT1("Length: %lx Buffer: %S\n", Length, NameBuffer);