From 134baad36b25c6501d36fa16c4f3f13d83637f5d Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Tue, 27 May 2008 10:53:23 +0000 Subject: [PATCH] - access parameter after they have been verified as valid - fixes a kernel32_winetest crash - fixes bug 3264 svn path=/trunk/; revision=33729 --- reactos/dll/win32/kernel32/file/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/kernel32/file/dir.c b/reactos/dll/win32/kernel32/file/dir.c index b5e1dc208e6..be2256e6852 100644 --- a/reactos/dll/win32/kernel32/file/dir.c +++ b/reactos/dll/win32/kernel32/file/dir.c @@ -1305,7 +1305,7 @@ DWORD STDCALL GetLongPathNameW( LPCWSTR shortpath, LPWSTR longpath, DWORD longle 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 @@ DWORD STDCALL GetLongPathNameW( LPCWSTR shortpath, LPWSTR longpath, DWORD longle lstrcpynW( longpath, shortpath, longlen ); return wcslen(longpath); } - + unixabsolute = (shortpath[0] == '/'); /* check for drive letter */ if (!unixabsolute && shortpath[1] == ':' ) {