Zac Brown : mshtml: Initialize variables in a couple structs.

Alexandre Julliard julliard at winehq.org
Wed Jun 25 04:47:07 CDT 2008


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

Author: Zac Brown <zac at zacbrown.org>
Date:   Mon Jun 23 17:41:18 2008 -0700

mshtml: Initialize variables in a couple structs.

---

 dlls/mshtml/txtrange.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/mshtml/txtrange.c b/dlls/mshtml/txtrange.c
index 841d971..9d96405 100644
--- a/dlls/mshtml/txtrange.c
+++ b/dlls/mshtml/txtrange.c
@@ -611,6 +611,7 @@ static WCHAR next_char(const dompos_t *pos, dompos_t *new_pos)
         case TEXT_NODE:
             tmp_pos.node = iter;
             tmp_pos.type = TEXT_NODE;
+            tmp_pos.off = 0;
             dompos_addref(&tmp_pos);
 
             p = tmp_pos.p;
@@ -726,6 +727,7 @@ static WCHAR prev_char(HTMLTxtRange *This, const dompos_t *pos, dompos_t *new_po
 
             tmp_pos.node = iter;
             tmp_pos.type = TEXT_NODE;
+            tmp_pos.off = 0;
             dompos_addref(&tmp_pos);
 
             p = tmp_pos.p + strlenW(tmp_pos.p)-1;




More information about the wine-cvs mailing list