Skip to content

Commit 0df6dea

Browse files
committed
Fix program name with spaces
Add quotes for `--name` to fix the case when the program name contains spaces.
1 parent e120b57 commit 0df6dea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SharpPocketToolsGUI/frmMain.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Public Class frmMain
123123
End If
124124
End If
125125

126-
ret = ExecuteProcess("ptools\bin2wav.exe", "--type=img --pc=" & cmbPcModel.Text & " --name=" & sharpFileName & " """ & imgFile & """ """ & wavFile & """", out, True, False)
126+
ret = ExecuteProcess("ptools\bin2wav.exe", "--type=img --pc=" & cmbPcModel.Text & " --name=""" & sharpFileName & """ """ & imgFile & """ """ & wavFile & """", out, True, False)
127127
txtLog.Text &= out & vbCrLf
128128
If ret <> 0 Then
129129
txtLog.Text &= vbCrLf & "bin2wav returned error " & ret & "!" & vbCrLf

0 commit comments

Comments
 (0)