mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:33:01 +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
1 changed files with 2 additions and 2 deletions
|
@ -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] == ':' )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue