Forráskód Böngészése

Bug 1404: Return error exit code (1) when user aborts the script

https://winscp.net/tracker/1404
+ When watching for directory changes fail

Source commit: e1d530b07d255548b60d2109c35e35142949a9ef
Martin Prikryl 9 éve
szülő
commit
7d2556cd38
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      source/windows/ConsoleRunner.cpp

+ 2 - 1
source/windows/ConsoleRunner.cpp

@@ -1692,6 +1692,7 @@ void __fastcall TConsoleRunner::SynchronizeControllerAbort(TObject * /*Sender*/,
   bool /*Close*/)
 {
   FSynchronizeAborted = true;
+  NotifyAbort();
 }
 //---------------------------------------------------------------------------
 void __fastcall TConsoleRunner::SynchronizeControllerSynchronize(
@@ -1975,7 +1976,7 @@ int __fastcall TConsoleRunner::Run(const UnicodeString Session, TOptions * Optio
       FLastProgressLen = 0;
     }
 
-    ExitCode = AnyError ? RESULT_ANY_ERROR : RESULT_SUCCESS;
+    ExitCode = (AnyError || FAborted) ? RESULT_ANY_ERROR : RESULT_SUCCESS;
 
     if (FScript != NULL)
     {