Handle default wine prefix for path conversions

This commit is contained in:
MikeMaximus
2018-10-12 10:18:17 -06:00
parent c7565f5487
commit 87f8840b72
+2 -1
View File
@@ -310,7 +310,8 @@ Public Class mgrPath
oMatch = oParse.Match(sPsinfo) oMatch = oParse.Match(sPsinfo)
Return oMatch.Value.Trim("/").Split("=")(1) Return oMatch.Value.Trim("/").Split("=")(1)
Else Else
Return String.Empty 'When WINEPREFIX is not part of the command, we will assume the default prefix.
Return Environment.GetFolderPath(Environment.SpecialFolder.Personal) & "/.wine"
End If End If
Catch ex As Exception Catch ex As Exception
mgrCommon.ShowMessage(mgrPath_ErrorWinePrefix, ex.Message, MsgBoxStyle.Exclamation) mgrCommon.ShowMessage(mgrPath_ErrorWinePrefix, ex.Message, MsgBoxStyle.Exclamation)