summaryrefslogtreecommitdiffstats
path: root/src/gpgme-w32spawn.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2025-12-11 06:38:42 +0100
committerNIIBE Yutaka <[email protected]>2025-12-11 06:42:13 +0100
commit5fa2e405807dec8f88e9a8a25ab381820631a078 (patch)
tree08cc63d84337a8307204b66767cef468ea9943c1 /src/gpgme-w32spawn.c
parentAvoid K&R-style function definition. (diff)
downloadgpgme-5fa2e405807dec8f88e9a8a25ab381820631a078.tar.gz
gpgme-5fa2e405807dec8f88e9a8a25ab381820631a078.zip
w32: Add a cast for GetProcAddress, add AM_CFLAGS for w32spawn.
* src/Makefile.am (gpgme_w32spawn_CFLAGS): Add AM_CFLAGS. * src/gpgme-w32spawn.c (my_spawn): GetProcAddress returns an address for the symbol. The correctness should be checked by human when writing the code (not by the function prototype). -- GnuPG-bug-id: 7968 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'src/gpgme-w32spawn.c')
-rw-r--r--src/gpgme-w32spawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgme-w32spawn.c b/src/gpgme-w32spawn.c
index 247d6009..61ef9815 100644
--- a/src/gpgme-w32spawn.c
+++ b/src/gpgme-w32spawn.c
@@ -249,7 +249,7 @@ my_spawn (wchar_t **argv, struct spawn_fd_item_s *fd_list, unsigned int flags)
handle = LoadLibraryA ("user32.dll");
if (handle)
{
- func = GetProcAddress (handle, "AllowSetForegroundWindow");
+ func = (void *)GetProcAddress (handle, "AllowSetForegroundWindow");
if (!func)
FreeLibrary (handle);
}