Got rid of the Wine internal lstrcpy* functions and of winestring.h.
diff --git a/files/drive.c b/files/drive.c index fe79bae..9ced671 100644 --- a/files/drive.c +++ b/files/drive.c
@@ -41,7 +41,6 @@ #include "winbase.h" #include "ntddk.h" #include "wine/winbase16.h" /* for GetCurrentTask */ -#include "wine/winestring.h" /* for lstrcpyAtoW */ #include "winerror.h" #include "drive.h" #include "cdrom.h" @@ -1286,7 +1285,7 @@ { LPSTR xpath = HeapAlloc( GetProcessHeap(), 0, buflen+1 ); UINT ret = GetCurrentDirectoryA( buflen, xpath ); - if (ret < buflen) lstrcpyAtoW ( buf, xpath ); + if (ret < buflen) ret = MultiByteToWideChar( CP_ACP, 0, xpath, -1, buf, buflen ) - 1; HeapFree( GetProcessHeap(), 0, xpath ); return ret; } @@ -1495,8 +1494,8 @@ fsname_len ); if (ret) { - if (label) lstrcpyAtoW( label, xvolname ); - if (fsname) lstrcpyAtoW( fsname, xfsname ); + if (label) MultiByteToWideChar( CP_ACP, 0, xvolname, -1, label, label_len ); + if (fsname) MultiByteToWideChar( CP_ACP, 0, xfsname, -1, fsname, fsname_len ); } HeapFree( GetProcessHeap(), 0, xroot ); HeapFree( GetProcessHeap(), 0, xvolname );