Commit e89c279d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Don't use attr_name in attr_to_eid.

parent 607a8d01
......@@ -268,12 +268,15 @@ eventid_t str_to_eid(LPCWSTR str)
return EVENTID_LAST;
}
static eventid_t attr_to_eid(LPCWSTR str)
static eventid_t attr_to_eid(const WCHAR *str)
{
int i;
if((str[0] != 'o' && str[0] != 'O') || (str[1] != 'n' && str[1] != 'N'))
return EVENTID_LAST;
for(i=0; i < sizeof(event_info)/sizeof(event_info[0]); i++) {
if(!strcmpW(event_info[i].attr_name, str))
if(!strcmpW(event_info[i].name, str+2))
return i;
}
......
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