agent,w32: Initialize nPth in server mode.
authorWerner Koch <wk@gnupg.org>
Tue, 29 Nov 2016 15:53:54 +0000 (16:53 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 29 Nov 2016 15:54:36 +0000 (16:54 +0100)
* agent/gpg-agent.c (main) [W32]: Call initialize_modules in server
mode.
--

Fixes-commit: 9a707a223a3d45ccf245dee7989ca144e4e6bb49
Signed-off-by: Werner Koch <wk@gnupg.org>
agent/gpg-agent.c

index 175866d..5060c07 100644 (file)
@@ -1532,10 +1532,15 @@ main (int argc, char **argv )
         parent_pid = getpid ();
 
       fflush (NULL);
+
 #ifdef HAVE_W32_SYSTEM
+
       (void)csh_style;
       (void)nodetach;
+      initialize_modules ();
+
 #else /*!HAVE_W32_SYSTEM*/
+
       pid = fork ();
       if (pid == (pid_t)-1)
         {