aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp-w32.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/exechelp-w32.c')
-rw-r--r--common/exechelp-w32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/exechelp-w32.c b/common/exechelp-w32.c
index 9da82304d..790e29b37 100644
--- a/common/exechelp-w32.c
+++ b/common/exechelp-w32.c
@@ -974,14 +974,14 @@ process_vctl (gnupg_process_t process, unsigned int request, va_list arg_ptr)
case GNUPG_PROCESS_NOP:
return 0;
- case GNUPG_PROCESS_GET_ID:
+ case GNUPG_PROCESS_GET_PROC_ID:
{
int *r_id = va_arg (arg_ptr, int *);
if (r_id == NULL)
return GPG_ERR_INV_VALUE;
- *r_id = (int)process->hProcess;
+ *r_id = (int)GetProcessId (process->hProcess);
return 0;
}