RT4526: Call TerminateProcess, not ExitProcess
[openssl.git] / apps / speed.c
index 3b162e1058ca28314444e8d7876319459c4a1b3e..f439d0d93192b7bf10d3d917cf2225a3a24e905e 100644 (file)
@@ -314,7 +314,7 @@ static double Time_F(int s)
         if (thr == NULL) {
             DWORD err = GetLastError();
             BIO_printf(bio_err, "unable to CreateThread (%lu)", err);
         if (thr == NULL) {
             DWORD err = GetLastError();
             BIO_printf(bio_err, "unable to CreateThread (%lu)", err);
-            ExitProcess(err);
+            TerminateProcess(GetCurrentProcess(), err);
         }
         while (!schlock)
             Sleep(0);           /* scheduler spinlock */
         }
         while (!schlock)
             Sleep(0);           /* scheduler spinlock */