]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fx_open_connection): Only execute once.
authorJason Rumney <jasonr@gnu.org>
Mon, 12 Nov 2001 23:25:13 +0000 (23:25 +0000)
committerJason Rumney <jasonr@gnu.org>
Mon, 12 Nov 2001 23:25:13 +0000 (23:25 +0000)
src/w32fns.c

index 35b4013f47e8af4c1b306b158f42b0ff969c3fad..29ba92c77c72cda99e6a8a65df65dd542ad0f078 100644 (file)
@@ -7548,6 +7548,11 @@ terminate Emacs if we can't open the connection.")
   unsigned char *xrm_option;
   struct w32_display_info *dpyinfo;
 
+  /* If initialization has already been done, return now to avoid
+     overwriting critical parts of one_w32_display_info.  */
+  if (w32_in_use)
+    return Qnil;
+
   CHECK_STRING (display, 0);
   if (! NILP (xrm_string))
     CHECK_STRING (xrm_string, 1);