Fix: Didn't take into account the direction of slashes for Windows.

This commit is contained in:
tanshu 2018-05-17 16:09:53 +05:30
parent 49faa9786d
commit 9301d8d07e
1 changed files with 3 additions and 3 deletions

View File

@ -67,11 +67,11 @@ namespace Tanshu.Accounts.Print
private static PlatformPrinter GetPrinter(string location)
{
if (location.StartsWith("smb://"))
if (location.StartsWith("smb:"))
return new PrinterWindows(location);
else if (location.StartsWith("cups://"))
else if (location.StartsWith("cups:"))
return new PrinterLinux(location);
else if (location.StartsWith("pdl://"))
else if (location.StartsWith("pdl:"))
return new PrinterSocket(location);
throw new NotImplementedException();
}