Test showing GetShortPathNameW problem preventing msi from installing .NET 1.1

Alexandre Julliard julliard at winehq.org
Sun Aug 27 12:05:17 CDT 2006


Robert Reif <reif at earthlink.net> writes:

> This test shows the problem that msi is having installing .Net 1.1.
>
> Could someone familiar with this code have a look at it please?

Does this help?

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));

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list