[PATCH 2/7] kernel32: Advance over the input buffer when stripping ./

Jeremy White jwhite at codeweavers.com
Mon Dec 21 10:51:53 CST 2015


This is the same fix for GetLongPathName that was contained in a fix for
GetShortPathName in commit 9178d037d71e823f5d5eaa5008a3cdd574377bac.

Signed-off-by: Jeremy White <jwhite at codeweavers.com>
---
 dlls/kernel32/path.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c
index ff94227..ec14b35 100644
--- a/dlls/kernel32/path.c
+++ b/dlls/kernel32/path.c
@@ -349,6 +349,7 @@ DWORD WINAPI GetLongPathNameW( LPCWSTR shortpath, LPWSTR longpath, DWORD longlen
         {
             tmplongpath[lp++] = *p++;
             tmplongpath[lp++] = *p++;
+            sp += 2;
         }
         for (; *p && *p != '/' && *p != '\\'; p++);
         tmplen = p - (shortpath + sp);
-- 
2.1.4




More information about the wine-patches mailing list