Fix return value of GetWindowsDirectoryW and GetSystemDirectoryW
Dmitry Timoshkov
dmitry at baikal.ru
Mon Jan 14 18:37:02 CST 2002
Hello.
Changelog:
Dmitry Timoshkov <dmitry at 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);
}
More information about the wine-patches
mailing list