Commit 9178d037 authored by Thomas Faller's avatar Thomas Faller Committed by Alexandre Julliard

kernel32: Fix invalid write.

parent 75599116
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment