Author: janderwald
Date: Tue May 27 05:53:23 2008
New Revision: 33729
URL:
http://svn.reactos.org/svn/reactos?rev=33729&view=rev
Log:
- access parameter after they have been verified as valid
- fixes a kernel32_winetest crash
- fixes bug 3264
Modified:
trunk/reactos/dll/win32/kernel32/file/dir.c
Modified: trunk/reactos/dll/win32/kernel32/file/dir.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/di…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/dir.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/dir.c [iso-8859-1] Tue May 27 05:53:23 2008
@@ -1305,7 +1305,7 @@
LPCWSTR p;
DWORD sp = 0, lp = 0;
DWORD tmplen;
- BOOL unixabsolute = (shortpath[0] == '/');
+ BOOL unixabsolute;
WIN32_FIND_DATAW wfd;
HANDLE goit;
@@ -1328,7 +1328,7 @@
lstrcpynW( longpath, shortpath, longlen );
return wcslen(longpath);
}
-
+ unixabsolute = (shortpath[0] == '/');
/* check for drive letter */
if (!unixabsolute && shortpath[1] == ':' )
{