Alexandre Julliard : mshtml: The HTMLDocument URL is a standard WCHAR string, not a BSTR.

Alexandre Julliard julliard at winehq.org
Tue Oct 2 06:52:36 CDT 2007


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Oct  1 18:07:30 2007 +0200

mshtml: The HTMLDocument URL is a standard WCHAR string, not a BSTR.

---

 dlls/mshtml/mshtml_private.h |    2 +-
 dlls/mshtml/persist.c        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h
index 5a547d4..3038d6f 100644
--- a/dlls/mshtml/mshtml_private.h
+++ b/dlls/mshtml/mshtml_private.h
@@ -129,7 +129,7 @@ struct HTMLDocument {
 
     BSCallback *bscallback;
     IMoniker *mon;
-    BSTR url;
+    LPOLESTR url;
 
     HWND hwnd;
     HWND tooltips_hwnd;
diff --git a/dlls/mshtml/persist.c b/dlls/mshtml/persist.c
index abee743..70da02e 100644
--- a/dlls/mshtml/persist.c
+++ b/dlls/mshtml/persist.c
@@ -175,7 +175,7 @@ void set_current_mon(HTMLDocument *This, IMoniker *mon)
     }
 
     if(This->url) {
-        SysFreeString(This->url);
+        CoTaskMemFree(This->url);
         This->url = NULL;
     }
 




More information about the wine-cvs mailing list