kernel32: Fix invalid write.

Signed-off-by: Thomas Faller <tfaller1@gmx.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Thomas Faller 2015-11-01 19:54:34 +01:00 committed by Alexandre Julliard
parent 755991162a
commit 9178d037d7
1 changed files with 1 additions and 0 deletions

View File

@ -506,6 +506,7 @@ DWORD WINAPI GetShortPathNameW( LPCWSTR longpath, LPWSTR shortpath, DWORD shortl
{
tmpshortpath[sp++] = *p++;
tmpshortpath[sp++] = *p++;
lp += 2;
}
for (; *p && *p != '/' && *p != '\\'; p++);
tmplen = p - (longpath + lp);