summaryrefslogtreecommitdiffstats
path: root/apps/speed.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2016-06-14 16:19:37 -0400
committerRich Salz <rsalz@openssl.org>2016-06-15 13:42:17 -0400
commit75f90688fb2dec0f897cad8be8b92be725c5016b (patch)
tree212350c946fa781d473cbced035e35203f1cf634 /apps/speed.c
parent5e102f96eb6fcdba1db2dba41132f92fa492aea0 (diff)
RT4526: Call TerminateProcess, not ExitProcess
Reviewed-by: Richard Levitte <levitte@openssl.org> (cherry picked from commit 9c1a9ccf65d0ea1912675d3a622fa8e51b524b9e)
Diffstat (limited to 'apps/speed.c')
-rw-r--r--apps/speed.c2
1 files changed, 1 insertions, 1 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)