WINEPATH: Use GetFullPathName to convert unix path names to DOS ones
Mike McCormack
mike at codeweavers.com
Mon Feb 9 17:17:05 CST 2004
ChangeLog:
* Use GetFullPathName to convert unix path names to DOS ones in winepath
-------------- next part --------------
Index: programs/winepath/winepath.c
===================================================================
RCS file: /home/wine/wine/programs/winepath/winepath.c,v
retrieving revision 1.4
diff -u -r1.4 winepath.c
--- programs/winepath/winepath.c 5 Jan 2004 23:42:09 -0000 1.4
+++ programs/winepath/winepath.c 9 Feb 2004 22:14:04 -0000
@@ -153,7 +153,7 @@
{
*path='\0';
if (outputformats & LONGFORMAT) {
- GetLongPathNameA(argv[i], path, sizeof(path));
+ GetFullPathNameA(argv[i], sizeof(path), path, NULL);
printf("%s\n", path);
}
if (outputformats & SHORTFORMAT) {
More information about the wine-patches
mailing list