- access parameter after they have been verified as valid

- fixes a kernel32_winetest crash
- fixes bug 3264

svn path=/trunk/; revision=33729
This commit is contained in:
Johannes Anderwald 2008-05-27 10:53:23 +00:00
parent 502222bd4c
commit 134baad36b

View file

@ -1305,7 +1305,7 @@ DWORD STDCALL GetLongPathNameW( LPCWSTR shortpath, LPWSTR longpath, DWORD longle
LPCWSTR p; LPCWSTR p;
DWORD sp = 0, lp = 0; DWORD sp = 0, lp = 0;
DWORD tmplen; DWORD tmplen;
BOOL unixabsolute = (shortpath[0] == '/'); BOOL unixabsolute;
WIN32_FIND_DATAW wfd; WIN32_FIND_DATAW wfd;
HANDLE goit; HANDLE goit;
@ -1328,7 +1328,7 @@ DWORD STDCALL GetLongPathNameW( LPCWSTR shortpath, LPWSTR longpath, DWORD longle
lstrcpynW( longpath, shortpath, longlen ); lstrcpynW( longpath, shortpath, longlen );
return wcslen(longpath); return wcslen(longpath);
} }
unixabsolute = (shortpath[0] == '/');
/* check for drive letter */ /* check for drive letter */
if (!unixabsolute && shortpath[1] == ':' ) if (!unixabsolute && shortpath[1] == ':' )
{ {