https://bugs.winehq.org/show_bug.cgi?id=46759
Bug ID: 46759 Summary: Wine Resource Compiler (wrc) ignores options in POPUP statement Product: Wine Version: unspecified Hardware: Other OS: other Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: roger.moser@pamho.net
If you have the following resource script:
xyz MENU BEGIN POPUP "Grayed Popup", GRAYED MENUITEM "Item", 100 END END
then the Wine Resource Compiler (wrc), unlike Microsoft's RC, ignores the options like GRAYED in the POPUP statement.
To fix this bug, make the following change in the file tools/wrc/parser.y at around line 1235:
| item_definitions tPOPUP tSTRING item_options menu_body { $$ = new_menu_item(); $$->prev = $1; if($1) $1->next = $$; $$->popup = get_item_head($5); $$->state = $4; // <<<<<<<< Insert this line <<<<<<<< $$->name = $3; } ;