Move _WIN32_WINNT definition from command line to e_os.h. The change is
[openssl.git] / crypto / rand / rand_win.c
index 39523d3005a7da238006795585d6b4d92308ea7d..47bf75828296d208b9384f154f0cd994b4f24b45 100644 (file)
@@ -632,7 +632,8 @@ int RAND_event(UINT iMsg, WPARAM wParam, LPARAM lParam)
 void RAND_screen(void) /* function available for backward compatibility */
 {
        RAND_poll();
-       readscreen();
+       if (GetVersion() >= 0x80000000 || !OPENSSL_isservice())
+               readscreen();
 }