mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
RT4526: Call TerminateProcess, not ExitProcess
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
c8f717fe87
commit
9c1a9ccf65
@ -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);
|
||||
ExitProcess(err);
|
||||
TerminateProcess(GetCurrentProcess(), err);
|
||||
}
|
||||
while (!schlock)
|
||||
Sleep(0); /* scheduler spinlock */
|
||||
|
@ -28,7 +28,7 @@ static TCHAR msg[128];
|
||||
static void unimplemented(void)
|
||||
{
|
||||
OPENSSL_showfatal(sizeof(TCHAR) == sizeof(char) ? "%s\n" : "%S\n", msg);
|
||||
ExitProcess(1);
|
||||
TerminateProcess(GetCurrentProcess(), 1);
|
||||
}
|
||||
|
||||
void OPENSSL_Uplink(volatile void **table, int index)
|
||||
|
Loading…
Reference in New Issue
Block a user