diff options
Diffstat (limited to 'src/assuan-pipe-connect.c')
-rw-r--r-- | src/assuan-pipe-connect.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/assuan-pipe-connect.c b/src/assuan-pipe-connect.c index fc56334..17d3c95 100644 --- a/src/assuan-pipe-connect.c +++ b/src/assuan-pipe-connect.c @@ -106,9 +106,9 @@ initial_handshake (assuan_context_t ctx) "can't connect server: %s", gpg_strerror (err)); else if (response == ASSUAN_RESPONSE_OK) { -#ifdef HAVE_W32_SYSTEM +#if defined(HAVE_W64_SYSTEM) || defined(HAVE_W32_SYSTEM) const char *line = ctx->inbound.line + off; - int pid = ASSUAN_INVALID_PID; + int process_handle = ASSUAN_INVALID_PID; /* Parse the message: OK ..., process %i */ line = strchr (line, ','); @@ -119,11 +119,11 @@ initial_handshake (assuan_context_t ctx) { line = strchr (line + 1, ' '); if (line) - pid = atoi (line + 1); + process_handle = atoi (line + 1); } } - if (pid != ASSUAN_INVALID_PID) - ctx->pid = pid; + if (process_handle != ASSUAN_INVALID_PID) + ctx->process_handle = process_handle; #else ; #endif |