Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a9200aa9
Commit
a9200aa9
authored
Feb 16, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Feb 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Avoid signed-unsigned integer comparisons.
parent
40f3a9fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
htmlbody.c
dlls/mshtml/htmlbody.c
+2
-1
htmlevent.c
dlls/mshtml/htmlevent.c
+8
-5
main.c
dlls/mshtml/main.c
+1
-1
nsio.c
dlls/mshtml/nsio.c
+1
-1
No files found.
dlls/mshtml/htmlbody.c
View file @
a9200aa9
...
...
@@ -127,7 +127,8 @@ static int loose_hex_to_rgb(const WCHAR *hex)
static
HRESULT
nscolor_to_str
(
LPCWSTR
color
,
BSTR
*
ret
)
{
int
i
,
rgb
=
-
1
;
unsigned
int
i
;
int
rgb
=
-
1
;
static
const
WCHAR
formatW
[]
=
{
'#'
,
'%'
,
'0'
,
'2'
,
'x'
,
'%'
,
'0'
,
'2'
,
'x'
,
'%'
,
'0'
,
'2'
,
'x'
,
0
};
...
...
dlls/mshtml/htmlevent.c
View file @
a9200aa9
...
...
@@ -929,7 +929,6 @@ static void call_event_handlers(HTMLDocumentNode *doc, HTMLEventObj *event_obj,
const
BOOL
cancelable
=
event_info
[
eid
].
flags
&
EVENT_CANCELABLE
;
handler_vector_t
*
handler_vector
=
NULL
;
VARIANT
v
;
int
i
;
HRESULT
hres
;
if
(
event_target
)
...
...
@@ -966,6 +965,7 @@ static void call_event_handlers(HTMLDocumentNode *doc, HTMLEventObj *event_obj,
if
(
handler_vector
&&
handler_vector
->
handler_cnt
)
{
VARIANTARG
arg
;
DISPPARAMS
dp
=
{
&
arg
,
NULL
,
1
,
0
};
int
i
;
V_VT
(
&
arg
)
=
VT_DISPATCH
;
V_DISPATCH
(
&
arg
)
=
(
IDispatch
*
)
event_obj
;
...
...
@@ -1009,16 +1009,18 @@ static void call_event_handlers(HTMLDocumentNode *doc, HTMLEventObj *event_obj,
for
(
cp
=
cp_container
->
cp_list
;
cp
;
cp
=
cp
->
next
)
{
if
(
cp
->
sinks_size
&&
is_cp_event
(
cp
->
data
,
event_info
[
eid
].
dispid
))
{
unsigned
int
i
;
for
(
i
=
0
;
doc
->
nsevent_listener
&&
i
<
cp
->
sinks_size
;
i
++
)
{
if
(
!
cp
->
sinks
[
i
].
disp
)
continue
;
V_VT
(
&
v
)
=
VT_EMPTY
;
TRACE
(
"cp %s [%
d
] >>>
\n
"
,
debugstr_w
(
event_info
[
eid
].
name
),
i
);
TRACE
(
"cp %s [%
u
] >>>
\n
"
,
debugstr_w
(
event_info
[
eid
].
name
),
i
);
hres
=
call_cp_func
(
cp
->
sinks
[
i
].
disp
,
event_info
[
eid
].
dispid
,
&
v
);
if
(
hres
==
S_OK
)
{
TRACE
(
"cp %s [%
d
] <<<
\n
"
,
debugstr_w
(
event_info
[
eid
].
name
),
i
);
TRACE
(
"cp %s [%
u
] <<<
\n
"
,
debugstr_w
(
event_info
[
eid
].
name
),
i
);
if
(
cancelable
)
{
if
(
V_VT
(
&
v
)
==
VT_BOOL
)
{
...
...
@@ -1030,7 +1032,7 @@ static void call_event_handlers(HTMLDocumentNode *doc, HTMLEventObj *event_obj,
}
VariantClear
(
&
v
);
}
else
{
WARN
(
"cp %s [%
d
] <<< %08x
\n
"
,
debugstr_w
(
event_info
[
eid
].
name
),
i
,
hres
);
WARN
(
"cp %s [%
u
] <<< %08x
\n
"
,
debugstr_w
(
event_info
[
eid
].
name
),
i
,
hres
);
}
}
...
...
@@ -1558,7 +1560,8 @@ HRESULT doc_init_events(HTMLDocumentNode *doc)
void
release_event_target
(
event_target_t
*
event_target
)
{
int
i
,
j
;
int
i
;
unsigned
int
j
;
for
(
i
=
0
;
i
<
EVENTID_LAST
;
i
++
)
{
if
(
event_target
->
event_table
[
i
])
{
...
...
dlls/mshtml/main.c
View file @
a9200aa9
...
...
@@ -67,7 +67,7 @@ static void thread_detach(void)
static
void
free_strings
(
void
)
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
status_strings
)
/
sizeof
(
*
status_strings
);
i
++
)
heap_free
(
status_strings
[
i
]);
}
...
...
dlls/mshtml/nsio.c
View file @
a9200aa9
...
...
@@ -3229,7 +3229,7 @@ static nsresult NSAPI nsIOService_GetProtocolFlags(nsIIOService *iface, const ch
static
BOOL
is_gecko_special_uri
(
const
char
*
spec
)
{
static
const
char
*
special_schemes
[]
=
{
"chrome:"
,
"jar:"
,
"moz-safe-about"
,
"resource:"
,
"javascript:"
,
"wyciwyg:"
};
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
special_schemes
)
/
sizeof
(
*
special_schemes
);
i
++
)
{
if
(
!
strncasecmp
(
spec
,
special_schemes
[
i
],
strlen
(
special_schemes
[
i
])))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment