diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/exechelp-posix.c | 2 | ||||
-rw-r--r-- | common/exechelp-w32.c | 4 | ||||
-rw-r--r-- | common/exechelp.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/common/exechelp-posix.c b/common/exechelp-posix.c index 6db7fdff1..7b20a3796 100644 --- a/common/exechelp-posix.c +++ b/common/exechelp-posix.c @@ -857,7 +857,7 @@ 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 *); 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; } diff --git a/common/exechelp.h b/common/exechelp.h index 7ef2234c8..398ef5d07 100644 --- a/common/exechelp.h +++ b/common/exechelp.h @@ -140,7 +140,7 @@ enum gnupg_process_requests { /* Portable requests */ GNUPG_PROCESS_NOP = 0, - GNUPG_PROCESS_GET_ID = 1, + GNUPG_PROCESS_GET_PROC_ID = 1, GNUPG_PROCESS_GET_EXIT_ID = 2, /* POSIX only */ |