mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 18:56:48 +00:00
[SCHANNEL]
Use the force^W SONAME_LIBGNUTLS constant. svn path=/trunk/; revision=67453
This commit is contained in:
parent
308a2b8491
commit
aa2b21abbc
2 changed files with 9 additions and 2 deletions
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
#include <wine/config.h>
|
#include <wine/config.h>
|
||||||
#include <wine/port.h>
|
#include <wine/port.h>
|
||||||
|
#include <wine/library.h>
|
||||||
#include <strsafe.h>
|
#include <strsafe.h>
|
||||||
|
|
||||||
#ifdef SONAME_LIBGNUTLS
|
#ifdef SONAME_LIBGNUTLS
|
||||||
|
@ -510,7 +511,13 @@ BOOL schan_imp_init(void)
|
||||||
wcscat(Path, L"\\");
|
wcscat(Path, L"\\");
|
||||||
wcscat(Path, SONAME_LIBGNUTLS);
|
wcscat(Path, SONAME_LIBGNUTLS);
|
||||||
*/
|
*/
|
||||||
static const WCHAR Path[] = L"C:\\Reactos\\system32\\gnutls\\libgnutls-28.dll";
|
WCHAR Path[MAX_PATH];
|
||||||
|
DWORD PathSize = sizeof(Path);
|
||||||
|
PathSize = GetSystemDirectoryW(Path, PathSize);
|
||||||
|
if(!PathSize)
|
||||||
|
return FALSE;
|
||||||
|
wcscat(Path, L"\\");
|
||||||
|
wcscat(Path, SONAME_LIBGNUTLS);
|
||||||
|
|
||||||
libgnutls_handle = LoadLibraryExW(Path, NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
|
libgnutls_handle = LoadLibraryExW(Path, NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
|
||||||
if (!libgnutls_handle)
|
if (!libgnutls_handle)
|
||||||
|
|
|
@ -1227,7 +1227,7 @@
|
||||||
/* #undef SONAME_LIBGLU */
|
/* #undef SONAME_LIBGLU */
|
||||||
|
|
||||||
/* Define to the soname of the libgnutls library. */
|
/* Define to the soname of the libgnutls library. */
|
||||||
#define SONAME_LIBGNUTLS L"libgnutls-28.dll"
|
#define SONAME_LIBGNUTLS L"gnutls\\libgnutls-28.dll"
|
||||||
|
|
||||||
/* Define to the soname of the libgsm library. */
|
/* Define to the soname of the libgsm library. */
|
||||||
/* #undef SONAME_LIBGSM */
|
/* #undef SONAME_LIBGSM */
|
||||||
|
|
Loading…
Reference in a new issue