Use GetFullPathName to convert unix path names to DOS ones.
diff --git a/programs/winepath/winepath.c b/programs/winepath/winepath.c index 5507546..31cc8b2 100644 --- a/programs/winepath/winepath.c +++ b/programs/winepath/winepath.c
@@ -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) {