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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Oct 19 11:34:19 CDT 2015


Module: wine
Branch: master
Commit: f8e3c1f712f5bc453d4bd161f24967a77009d7eb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f8e3c1f712f5bc453d4bd161f24967a77009d7eb

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Oct 19 00:50:22 2015 +0300

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

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mshtml/txtrange.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/mshtml/txtrange.c b/dlls/mshtml/txtrange.c
index debc5ed..b8103ce 100644
--- a/dlls/mshtml/txtrange.c
+++ b/dlls/mshtml/txtrange.c
@@ -1207,7 +1207,7 @@ static HRESULT WINAPI HTMLTxtRange_move(IHTMLTxtRange *iface, BSTR Unit,
 
     if(!Count) {
         *ActualCount = 0;
-        return IHTMLTxtRange_collapse(&This->IHTMLTxtRange_iface, TRUE);
+        return IHTMLTxtRange_collapse(&This->IHTMLTxtRange_iface, VARIANT_TRUE);
     }
 
     switch(unit) {
@@ -1219,7 +1219,7 @@ static HRESULT WINAPI HTMLTxtRange_move(IHTMLTxtRange *iface, BSTR Unit,
         *ActualCount = move_by_chars(&start, Count);
 
         set_start_point(This, &start);
-        IHTMLTxtRange_collapse(&This->IHTMLTxtRange_iface, TRUE);
+        IHTMLTxtRange_collapse(&This->IHTMLTxtRange_iface, VARIANT_TRUE);
         free_rangepoint(&start);
         break;
     }
@@ -1232,7 +1232,7 @@ static HRESULT WINAPI HTMLTxtRange_move(IHTMLTxtRange *iface, BSTR Unit,
         *ActualCount = move_by_words(&start, Count);
 
         set_start_point(This, &start);
-        IHTMLTxtRange_collapse(&This->IHTMLTxtRange_iface, TRUE);
+        IHTMLTxtRange_collapse(&This->IHTMLTxtRange_iface, VARIANT_TRUE);
         free_rangepoint(&start);
         break;
     }




More information about the wine-cvs mailing list