Commit aceca94c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

contrib: gnutls: Don't use LoadLibraryA

parent fef8823d
--- gnutls/lib/system.c.orig 2016-07-08 14:39:45.104700999 +0200
+++ gnutls/lib/system.c 2016-07-08 14:40:28.276750643 +0200
@@ -322,7 +322,7 @@
#ifdef _WIN32
#if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) && __MINGW32_MAJOR_VERSION <= 3 && __MINGW32_MINOR_VERSION <= 20
HMODULE crypto;
- crypto = LoadLibraryA("Crypt32.dll");
+ crypto = LoadLibrary(TEXT("Crypt32.dll"));
if (crypto == NULL)
return GNUTLS_E_CRYPTO_INIT_FAILED;
--- gnutls/lib/system-keys-win.c.orig 2016-07-08 14:39:58.336716261 +0200
+++ gnutls/lib/system-keys-win.c 2016-07-08 14:40:12.568732630 +0200
@@ -1059,7 +1059,7 @@
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);
}
......@@ -22,6 +22,7 @@ gnutls: gnutls-$(GNUTLS_VERSION).tar.xz .sum-gnutls
ifdef HAVE_WIN32
$(APPLY) $(SRC)/gnutls/gnutls-win32.patch
$(APPLY) $(SRC)/gnutls/gnutls-mingw64.patch
$(APPLY) $(SRC)/gnutls/gnutls-loadlibrary.patch
ifdef HAVE_WINSTORE
$(APPLY) $(SRC)/gnutls/gnutls-winrt.patch
$(APPLY) $(SRC)/gnutls/winrt-topendir.patch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment