mshtml: Use VARIANT_TRUE instead of TRUE when appropriate (PVS-Studio).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2015-10-19 00:50:22 +03:00 committed by Alexandre Julliard
parent e2275b0a2a
commit f8e3c1f712
1 changed files with 3 additions and 3 deletions

View File

@ -1207,7 +1207,7 @@ static HRESULT WINAPI HTMLTxtRange_move(IHTMLTxtRange *iface, BSTR Unit,
if(!Count) { if(!Count) {
*ActualCount = 0; *ActualCount = 0;
return IHTMLTxtRange_collapse(&This->IHTMLTxtRange_iface, TRUE); return IHTMLTxtRange_collapse(&This->IHTMLTxtRange_iface, VARIANT_TRUE);
} }
switch(unit) { switch(unit) {
@ -1219,7 +1219,7 @@ static HRESULT WINAPI HTMLTxtRange_move(IHTMLTxtRange *iface, BSTR Unit,
*ActualCount = move_by_chars(&start, Count); *ActualCount = move_by_chars(&start, Count);
set_start_point(This, &start); set_start_point(This, &start);
IHTMLTxtRange_collapse(&This->IHTMLTxtRange_iface, TRUE); IHTMLTxtRange_collapse(&This->IHTMLTxtRange_iface, VARIANT_TRUE);
free_rangepoint(&start); free_rangepoint(&start);
break; break;
} }
@ -1232,7 +1232,7 @@ static HRESULT WINAPI HTMLTxtRange_move(IHTMLTxtRange *iface, BSTR Unit,
*ActualCount = move_by_words(&start, Count); *ActualCount = move_by_words(&start, Count);
set_start_point(This, &start); set_start_point(This, &start);
IHTMLTxtRange_collapse(&This->IHTMLTxtRange_iface, TRUE); IHTMLTxtRange_collapse(&This->IHTMLTxtRange_iface, VARIANT_TRUE);
free_rangepoint(&start); free_rangepoint(&start);
break; break;
} }