Avoid Windows 8 Getversion deprecated errors.
[openssl.git] / apps / apps.c
index d501eebd767cf6f33bfdd6f59d63d50809f4160c..c49c1c3bb70b05b640b8bfe4f4048256b476bcd0 100644 (file)
@@ -3114,7 +3114,7 @@ double app_tminterval(int stop,int usertime)
 
        if (proc==NULL)
                {
-               if (GetVersion() < 0x80000000)
+               if (check_winnt())
                        proc = OpenProcess(PROCESS_QUERY_INFORMATION,FALSE,
                                                GetCurrentProcessId());
                if (proc==NULL) proc = (HANDLE)-1;