This commit is contained in:
JustArchi
2017-09-24 13:05:53 +02:00
parent a8c21916d0
commit c2908d24fe

View File

@@ -46,7 +46,8 @@ namespace ArchiSteamFarm {
}
internal static void UnixSetFileAccessExecutable(string path) {
if (!File.Exists(path)) {
if (string.IsNullOrEmpty(path) || !File.Exists(path)) {
ASF.ArchiLogger.LogNullError(nameof(path));
return;
}
@@ -57,6 +58,10 @@ namespace ArchiSteamFarm {
}
private static void DisableQuickEditMode() {
if (Console.IsOutputRedirected) {
return;
}
// http://stackoverflow.com/questions/30418886/how-and-why-does-quickedit-mode-in-command-prompt-freeze-applications
IntPtr consoleHandle = NativeMethods.GetStdHandle(NativeMethods.StandardInputHandle);