Skip to content

Commit

Permalink
RT4526: Call TerminateProcess, not ExitProcess
Browse files Browse the repository at this point in the history
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 9c1a9cc)
  • Loading branch information
Rich Salz committed Jun 15, 2016
1 parent 5e102f9 commit 75f9068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/speed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion ms/uplink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 75f9068

Please sign in to comment.