mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-14 18:39:40 +00:00
RT4526: Call TerminateProcess, not ExitProcess
Reviewed-by: Richard Levitte <levitte@openssl.org> (cherry picked from commit 9c1a9ccf65d0ea1912675d3a622fa8e51b524b9e)
This commit is contained in:
parent
5e102f96eb
commit
75f90688fb
@ -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);
|
||||
ExitProcess(ret);
|
||||
TerminateProcess(GetCurrentProcess(), err);
|
||||
}
|
||||
CloseHandle(thr); /* detach the thread */
|
||||
while (!schlock)
|
||||
|
@ -19,7 +19,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…
x
Reference in New Issue
Block a user