From 868b5397d3869c4ed16eb786dcd779f6ac8ceb24 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 1 Oct 2007 18:07:30 +0200 Subject: [PATCH] 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 5a547d4a3fa..3038d6fe38a 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 abee74349b6..70da02ee40b 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; } -- 2.11.4.GIT