]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix another issue with Scanning sources at the drive letter level.
authorsr55 <sr55.hb@outlook.com>
Thu, 14 Jun 2012 22:03:04 +0000 (22:03 +0000)
committersr55 <sr55.hb@outlook.com>
Thu, 14 Jun 2012 22:03:04 +0000 (22:03 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4736 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrake.ApplicationServices/Services/ScanService.cs

index 0d5118aee51947c7af95cd79c1ba16797d58f5de..fc8bb3f632cdb85d0cafe5cecb80ae4b3279f3bd 100644 (file)
@@ -244,11 +244,9 @@ namespace HandBrake.ApplicationServices.Services
                     extraArguments += " --scan ";\r
                 }\r
 \r
-                // Quick fix for "F:\\" style paths. Just get rid of the \\ so the CLI doesn't fall over.\r
-                // Sould probably clean up the escaping of the strings later.\r
-                string source = sourcePath.ToString().EndsWith("\\")\r
-                                    ? "\"" + sourcePath.ToString().TrimEnd('\\') + "\""\r
-                                    : "\"" + sourcePath + "\"";\r
+                // Quick fix for "F:\\" style paths. We need \\\\ (Escaped \ twice)\r
+                string source = sourcePath.ToString().EndsWith("\\") ? string.Format("\"{0}\\\\\"", sourcePath.ToString().TrimEnd('\\'))\r
+                                : "\"" + sourcePath + "\"";\r
                 string query = string.Format(@" -i {0} -t{1} {2} -v ", source, title, extraArguments);\r
 \r
                 this.hbProc = new Process\r