Commit c34b64d6 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

wrc: Warn for duplicate dialog ids.

parent 1793f55f
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment