mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 12:18:13 +00:00
- 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:
parent
502222bd4c
commit
134baad36b
|
@ -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] == ':' )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue