From 9178d037d71e823f5d5eaa5008a3cdd574377bac Mon Sep 17 00:00:00 2001 From: Thomas Faller Date: Sun, 1 Nov 2015 19:54:34 +0100 Subject: [PATCH] kernel32: Fix invalid write. Signed-off-by: Thomas Faller Signed-off-by: Alexandre Julliard --- dlls/kernel32/path.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c index bc417bd89d3..d8977f9d940 100644 --- a/dlls/kernel32/path.c +++ b/dlls/kernel32/path.c @@ -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);