From: Soujyu Tanaka Date: Wed, 27 Mar 2019 07:21:58 +0000 (+0900) Subject: Circumvent a problem of lacking GetEnvironmentVariable() in WindowsCE. X-Git-Tag: openssl-3.0.0-alpha1~2286 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3d098890b23598d1f9455b354f46045a231459cd;p=oweals%2Fopenssl.git Circumvent a problem of lacking GetEnvironmentVariable() in WindowsCE. Reviewed-by: Richard Levitte Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/8596) --- diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index 66cec245a7..7dde54b187 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -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;