changeset 107753:3153ca396956

Fix bug #5703. w32fns.c (x_create_tip_frame): Copy `parms' before we modify it in this function.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 31 Mar 2010 12:08:40 +0300
parents cc97bf641d5f
children c065a9e361c6
files src/ChangeLog src/w32fns.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Mar 31 00:00:23 2010 -0400
+++ b/src/ChangeLog	Wed Mar 31 12:08:40 2010 +0300
@@ -1,3 +1,8 @@
+2010-03-31  Eli Zaretskii  <eliz@gnu.org>
+
+	* w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
+	in this function.  (Bug#5703)
+
 2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
 
 	* nsterm.h: Fix last change.
--- a/src/w32fns.c	Wed Mar 31 00:00:23 2010 -0400
+++ b/src/w32fns.c	Wed Mar 31 12:08:40 2010 +0300
@@ -5427,6 +5427,10 @@
 
   kb = dpyinfo->terminal->kboard;
 
+  /* The calls to x_get_arg remove elements from PARMS, so copy it to
+     avoid destructive changes behind our caller's back.  */
+  parms = Fcopy_alist (parms);
+
   /* Get the name of the frame to use for resource lookup.  */
   name = x_get_arg (dpyinfo, parms, Qname, "name", "Name", RES_TYPE_STRING);
   if (!STRINGP (name)