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:
parent
755991162a
commit
9178d037d7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue