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 10:02:06 +0000 (10:02 +0000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8596)

(cherry picked from commit 3d098890b23598d1f9455b354f46045a231459cd)

crypto/rand/randfile.c

index 1b737d1ba2ba3385fbe8aabbeaf032f143ae42d9..f61c48139c12c6c1080e7c4a295b570ee9b03142 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;