mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-24 22:09:57 +01:00
2003-10-04 Timo Schulz <twoaday@freakmail.de>
* dynload [WIN32] (dlclose): Do not use CloseHandle but FreeLibrary.
This commit is contained in:
parent
99cabff03f
commit
25bf32a078
@ -1,3 +1,7 @@
|
||||
2003-10-04 Timo Schulz <twoaday@freakmail.de>
|
||||
|
||||
* dynload [WIN32] (dlclose): Do not use CloseHandle but FreeLibrary.
|
||||
|
||||
2003-09-29 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* cipher.h (PUBKEY_USAGE_AUTH): New.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user