wrc: Allow comma after popup name

André Hentschel nerv at dawncrow.de
Mon Dec 13 10:28:34 CST 2010


Fixes Bug 16914 (http://bugs.winehq.org/show_bug.cgi?id=16914)

---
 tools/wrc/parser.y |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/wrc/parser.y b/tools/wrc/parser.y
index 8c49114..48b717c 100644
--- a/tools/wrc/parser.y
+++ b/tools/wrc/parser.y
@@ -369,7 +369,7 @@ resource_file
 		else
 			$1 = rsc;
 
-		/* Final statements before were done */
+		/* Final statements before we're done */
                 if ((head = get_resource_head($1)) != NULL)
                 {
                     if (resource_top)  /* append to existing resources */
@@ -1259,12 +1259,12 @@ item_definitions
 		if($1)
 			$1->next = $$;
 		}
-	| item_definitions tPOPUP tSTRING item_options menu_body {
+	| item_definitions tPOPUP tSTRING opt_comma item_options menu_body {
 		$$ = new_menu_item();
 		$$->prev = $1;
 		if($1)
 			$1->next = $$;
-		$$->popup = get_item_head($5);
+		$$->popup = get_item_head($6);
 		$$->name = $3;
 		}
 	;
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list