diff options
-rw-r--r-- | apps/speed.c | 2 | ||||
-rw-r--r-- | ms/uplink.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/speed.c b/apps/speed.c index 95adcc19cc..a37c9b547d 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -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) diff --git a/ms/uplink.c b/ms/uplink.c index e58ab9d8f5..c5c9cd4f71 100644 --- a/ms/uplink.c +++ b/ms/uplink.c @@ -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) |