Skip to content

Commit 546176b

Browse files
Remove extra slash
1 parent 5f659cc commit 546176b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/HedgeModManager/LinuxCompatibility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public static string ToWinePath(string path)
159159
// Root path
160160
if (path.StartsWith("/"))
161161
{
162-
return "Z:\\" + path.Replace("/", "\\");
162+
return "Z:" + path.Replace("/", "\\");
163163
}
164164

165165
// Unknown path
@@ -176,7 +176,7 @@ public static string ToUnixPath(string path)
176176
// Root path
177177
if (path.StartsWith("Z:\\"))
178178
{
179-
return "/" + path[3..].Replace("\\", "/");
179+
return path[2..].Replace("\\", "/");
180180
}
181181

182182
// Unknown path

0 commit comments

Comments
 (0)