Commit c144b4ed authored by Matt Caswell's avatar Matt Caswell
Browse files

Revert "RT4526: Call TerminateProcess, not ExitProcess"



This reverts commit 75f90688.

TerminateProcess is asynchronous, so the code as written in the above
commit is not correct (and doesn't even compile at the moment). It is
also probably not needed in the speed case. Reverting in order to figure
out the correct solution.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent d9e6d771
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -332,7 +332,7 @@ static double Time_F(int s)
        if (thr == NULL) {
            DWORD ret = GetLastError();
            BIO_printf(bio_err, "unable to CreateThread (%d)", ret);
            TerminateProcess(GetCurrentProcess(), err);
            ExitProcess(ret);
        }
        CloseHandle(thr);       /* detach the thread */
        while (!schlock)
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ static TCHAR msg[128];
static void unimplemented(void)
{
    OPENSSL_showfatal(sizeof(TCHAR) == sizeof(char) ? "%s\n" : "%S\n", msg);
    TerminateProcess(GetCurrentProcess(), 1);
    ExitProcess(1);
}

void OPENSSL_Uplink(volatile void **table, int index)