]> git.eshelyaron.com Git - emacs.git/commitdiff
Prevent crash if w32 used before it's initialized
authorDaniel Colascione <dancol@dancol.org>
Sat, 1 Sep 2012 08:22:10 +0000 (00:22 -0800)
committerDaniel Colascione <dancol@dancol.org>
Sat, 1 Sep 2012 08:22:10 +0000 (00:22 -0800)
src/ChangeLog
src/w32fns.c

index 3c878d5850fd58a2ca5094b19779eac2ee0b845d..cfa60cbcf661b91931e5cb3d2678010da90882d0 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-01  Daniel Colascione  <dancol@dancol.org>
+
+       * w32fns.c (x_display_info_for_name): Prevent crash if w32 window
+       system used too early.
+
 2012-09-01  Paul Eggert  <eggert@cs.ucla.edu>
 
        Better seed support for (random).
index 9c5231f9d93ee52272fd61c9458a757d2845a91a..5a1b6dfababe17d351d83776748c9f4458c13d8f 100644 (file)
@@ -4735,7 +4735,7 @@ x_display_info_for_name (Lisp_Object name)
   CHECK_STRING (name);
 
   for (dpyinfo = &one_w32_display_info, names = w32_display_name_list;
-       dpyinfo;
+       dpyinfo && !NILP (w32_display_name_list);
        dpyinfo = dpyinfo->next, names = XCDR (names))
     {
       Lisp_Object tem;