mshtml: Don't use attr_name in attr_to_eid.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
607a8d0121
commit
e89c279d1c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user