diff --git a/src/gpgme-w32spawn.c b/src/gpgme-w32spawn.c index 64913b01..d6de2cc2 100644 --- a/src/gpgme-w32spawn.c +++ b/src/gpgme-w32spawn.c @@ -243,7 +243,7 @@ my_spawn (char **argv, struct spawn_fd_item_s *fd_list, unsigned int flags) handle = LoadLibrary ("user32.dll"); if (handle) { - func = GetProcAddress (handle, "AllowSetForegroundWindow"); + func = (BOOL (*)(DWORD)) GetProcAddress (handle, "AllowSetForegroundWindow"); if (!func) FreeLibrary (handle); }