aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/dynload.h8
2 files changed, 8 insertions, 4 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index e0e1f35f0..30c92113a 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2003-10-04 Timo Schulz <[email protected]>
+
+ * dynload [WIN32] (dlclose): Do not use CloseHandle but FreeLibrary.
+
2003-09-29 Werner Koch <[email protected]>
* cipher.h (PUBKEY_USAGE_AUTH): New.
diff --git a/include/dynload.h b/include/dynload.h
index c8aadb49c..36dbb8ce9 100644
--- a/include/dynload.h
+++ b/include/dynload.h
@@ -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;