mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-28 22:49:59 +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>
|
2003-09-29 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* cipher.h (PUBKEY_USAGE_AUTH): New.
|
* cipher.h (PUBKEY_USAGE_AUTH): New.
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#ifndef GNUPG_DYNLOAD_H
|
#ifndef GNUPG_DYNLOAD_H
|
||||||
#define GNUPG_DYNLOAD_H
|
#define GNUPG_DYNLOAD_H
|
||||||
#ifdef ENABLE_CARD_SUPPORT
|
#ifdef ENABLE_CARD_SUPPORT
|
||||||
#ifndef __MINGW32__
|
#ifndef _WIN32
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#else
|
#else
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
@ -36,7 +36,7 @@ dlopen (const char * name, int flag)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static __inline__ void *
|
static __inline__ void *
|
||||||
dlsym (void *hd, const char *sym)
|
dlsym (void * hd, const char * sym)
|
||||||
{
|
{
|
||||||
if (hd && sym)
|
if (hd && sym)
|
||||||
{
|
{
|
||||||
@ -53,7 +53,7 @@ static __inline__ const char *
|
|||||||
dlerror (void)
|
dlerror (void)
|
||||||
{
|
{
|
||||||
static char buf[32];
|
static char buf[32];
|
||||||
sprintf (buf, "ec=%lu", GetLastError ());
|
sprintf (buf, "ec=%lu\n", GetLastError ());
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ dlclose (void * hd)
|
|||||||
{
|
{
|
||||||
if (hd)
|
if (hd)
|
||||||
{
|
{
|
||||||
CloseHandle (hd);
|
FreeLibrary (hd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user