Module: wine Branch: master Commit: 5c324c81882c174b48c89480029a6ccc147daec9 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=5c324c81882c174b48c89480...
Author: Alexandre Julliard julliard@winehq.org Date: Sun Aug 27 20:15:58 2006 +0200
kernel: Fixed off-by-one error in GetShortPathNameW.
---
dlls/kernel/path.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel/path.c b/dlls/kernel/path.c index c4d7677..ddd169c 100644 --- a/dlls/kernel/path.c +++ b/dlls/kernel/path.c @@ -481,7 +481,7 @@ DWORD WINAPI GetShortPathNameW( LPCWSTR tmplen = p - (longpath + lp); lstrcpynW(tmpshortpath + sp, longpath + lp, tmplen + 1); /* Check, if the current element is a valid dos name */ - if (tmplen <= 8+1+3+1) + if (tmplen <= 8+1+3) { BOOLEAN spaces; memcpy(ustr_buf, longpath + lp, tmplen * sizeof(WCHAR));