1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

2003-10-04 Timo Schulz <twoaday@freakmail.de>

* dynload [WIN32] (dlclose): Do not use CloseHandle but FreeLibrary.
This commit is contained in:
Timo Schulz 2003-10-04 12:55:47 +00:00
parent 99cabff03f
commit 25bf32a078
2 changed files with 8 additions and 4 deletions

View file

@ -21,7 +21,7 @@
#ifndef GNUPG_DYNLOAD_H
#define GNUPG_DYNLOAD_H
#ifdef ENABLE_CARD_SUPPORT
#ifndef __MINGW32__
#ifndef _WIN32
#include <dlfcn.h>
#else
#include <windows.h>
@ -36,7 +36,7 @@ dlopen (const char * name, int flag)
}
static __inline__ void *
dlsym (void *hd, const char *sym)
dlsym (void * hd, const char * sym)
{
if (hd && sym)
{
@ -53,7 +53,7 @@ static __inline__ const char *
dlerror (void)
{
static char buf[32];
sprintf (buf, "ec=%lu", GetLastError ());
sprintf (buf, "ec=%lu\n", GetLastError ());
return buf;
}
@ -63,7 +63,7 @@ dlclose (void * hd)
{
if (hd)
{
CloseHandle (hd);
FreeLibrary (hd);
return 0;
}
return -1;