diff options
author | Hugo Beauzée-Luyssen <hugo@beauzee.fr> | 2018-12-04 11:53:48 +0100 |
---|---|---|
committer | Hugo Beauzée-Luyssen <hugo@beauzee.fr> | 2018-12-19 09:46:01 +0100 |
commit | ba6c026615f83884bb8facdfb022776adae9de0c (patch) | |
tree | 669e4f8d6122b83e4a39e3e75b9ec31e191c3df5 | |
parent | 62f162f64c23a5e6b872ff8ee540d375b7e27168 (diff) | |
download | gnutls-ba6c026615f83884bb8facdfb022776adae9de0c.tar.gz |
lib: Don't hardcode LoadLibraryA
Those functions are forbidden when building for Windows Store
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
-rw-r--r-- | lib/system.c | 2 | ||||
-rw-r--r-- | lib/system/keys-win.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/system.c b/lib/system.c index 1bbbf79c84..ddf1427098 100644 --- a/lib/system.c +++ b/lib/system.c @@ -70,7 +70,7 @@ int gnutls_system_global_init(void) #if defined(_WIN32) && defined(NEED_CERT_ENUM_CRLS) /* used in system/certs.c */ HMODULE crypto; - crypto = LoadLibraryA("Crypt32.dll"); + crypto = LoadLibrary(TEXT("Crypt32.dll")); if (crypto == NULL) return GNUTLS_E_CRYPTO_INIT_FAILED; diff --git a/lib/system/keys-win.c b/lib/system/keys-win.c index eac511b975..16d6f9f951 100644 --- a/lib/system/keys-win.c +++ b/lib/system/keys-win.c @@ -1426,7 +1426,7 @@ int _gnutls_system_key_init(void) int ret; #ifdef DYN_NCRYPT - ncrypt_lib = LoadLibraryA("ncrypt.dll"); + ncrypt_lib = LoadLibrary(TEXT("ncrypt.dll")); if (ncrypt_lib == NULL) { return gnutls_assert_val(GNUTLS_E_CRYPTO_INIT_FAILED); } |