Thomas Faller : kernel32: Fix invalid write.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 2 09:47:14 CST 2015


Module: wine
Branch: master
Commit: 9178d037d71e823f5d5eaa5008a3cdd574377bac
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9178d037d71e823f5d5eaa5008a3cdd574377bac

Author: Thomas Faller <tfaller1 at gmx.de>
Date:   Sun Nov  1 19:54:34 2015 +0100

kernel32: Fix invalid write.

Signed-off-by: Thomas Faller <tfaller1 at gmx.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kernel32/path.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c
index bc417bd..d8977f9 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);




More information about the wine-cvs mailing list