wrc: Warn for duplicate dialog ids.

This commit is contained in:
Dmitry Timoshkov 2009-01-14 18:31:29 +08:00 committed by Alexandre Julliard
parent 1793f55f35
commit c34b64d6d9
1 changed files with 8 additions and 0 deletions

View File

@ -1966,6 +1966,14 @@ static control_t *ins_ctrl(int type, int special_style, control_t *ctrl, control
if(prev)
prev->next = ctrl;
/* Check for duplicate identifiers */
while (prev)
{
if (ctrl->id != -1 && ctrl->id == prev->id)
parser_warning("Duplicate dialog control id %d\n", ctrl->id);
prev = prev->prev;
}
if(type != -1)
{
ctrl->ctlclass = new_name_id();