Circumvent a problem of lacking GetEnvironmentVariable() in WindowsCE.
[openssl.git] / crypto / rand / randfile.c
index 66cec245a79e580040a906a44f5837733caadfa8..7dde54b18726ca1f2a5319924f1f33532703856a 100644 (file)
@@ -254,7 +254,7 @@ const char *RAND_file_name(char *buf, size_t size)
     size_t len;
     int use_randfile = 1;
 
-#if defined(_WIN32) && defined(CP_UTF8)
+#if defined(_WIN32) && defined(CP_UTF8) && !defined(_WIN32_WCE)
     DWORD envlen;
     WCHAR *var;