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