Circumvent a problem of lacking GetEnvironmentVariable() in WindowsCE.
authorSoujyu Tanaka <soujyu.tanaka@access-company.com>
Wed, 27 Mar 2019 07:21:58 +0000 (16:21 +0900)
committerMatt Caswell <matt@openssl.org>
Fri, 29 Mar 2019 09:51:24 +0000 (09:51 +0000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8596)

crypto/rand/randfile.c

index 66cec24..7dde54b 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;