Fix return value of GetWindowsDirectoryW and GetSystemDirectoryW

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

Changelog:
    Dmitry Timoshkov <dmitry@codeweavers.com>
    Fix return value of GetWindowsDirectoryW and GetSystemDirectoryW.

--- cvs/hq/wine/files/directory.c	Mon Nov 19 05:25:28 2001
+++ wine/files/directory.c	Tue Jan 15 00:31:30 2002
@@ -280,7 +280,7 @@
         if (!MultiByteToWideChar( CP_ACP, 0, DIR_Windows.short_name, -1, path, count ))
             path[count-1] = 0;
     }
-    return len;
+    return (len - 1);
 }
 
 
@@ -332,7 +332,7 @@
         if (!MultiByteToWideChar( CP_ACP, 0, DIR_System.short_name, -1, path, count ))
             path[count-1] = 0;
     }
-    return len;
+    return (len - 1);
 }
 
 







[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux