Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
535e2b23
Commit
535e2b23
authored
Nov 10, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Store window URL as BSTR.
parent
a1005503
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
navigate.c
dlls/mshtml/navigate.c
+2
-4
persist.c
dlls/mshtml/persist.c
+8
-3
No files found.
dlls/mshtml/mshtml_private.h
View file @
535e2b23
...
...
@@ -308,7 +308,7 @@ struct HTMLWindow {
nsChannelBSC
*
bscallback
;
IMoniker
*
mon
;
LPOLE
STR
url
;
B
STR
url
;
IHTMLEventObj
*
event
;
...
...
dlls/mshtml/navigate.c
View file @
535e2b23
...
...
@@ -1261,7 +1261,7 @@ static void handle_navigation_error(nsChannelBSC *This, DWORD result)
SAFEARRAYBOUND
bound
;
VARIANT
var
,
varOut
;
LONG
ind
;
BSTR
u
rl
,
u
nk
;
BSTR
unk
;
HRESULT
hres
;
if
(
!
This
->
window
)
...
...
@@ -1296,8 +1296,7 @@ static void handle_navigation_error(nsChannelBSC *This, DWORD result)
ind
=
1
;
V_VT
(
&
var
)
=
VT_BSTR
;
url
=
SysAllocString
(
This
->
window
->
url
);
V_BSTR
(
&
var
)
=
url
;
V_BSTR
(
&
var
)
=
This
->
window
->
url
;
SafeArrayPutElement
(
sa
,
&
ind
,
&
var
);
ind
=
3
;
...
...
@@ -1338,7 +1337,6 @@ static void handle_navigation_error(nsChannelBSC *This, DWORD result)
V_BOOL
(
&
varOut
)
=
VARIANT_TRUE
;
IOleCommandTarget_Exec
(
olecmd
,
&
CGID_DocHostCmdPriv
,
1
,
0
,
&
var
,
FAILED
(
hres
)
?
NULL
:&
varOut
);
SysFreeString
(
url
);
SysFreeString
(
unk
);
SafeArrayDestroy
(
sa
);
IOleCommandTarget_Release
(
olecmd
);
...
...
dlls/mshtml/persist.c
View file @
535e2b23
...
...
@@ -68,6 +68,7 @@ static BOOL use_gecko_script(HTMLWindow *window)
void
set_current_mon
(
HTMLWindow
*
This
,
IMoniker
*
mon
)
{
WCHAR
*
url
;
HRESULT
hres
;
if
(
This
->
mon
)
{
...
...
@@ -76,7 +77,7 @@ void set_current_mon(HTMLWindow *This, IMoniker *mon)
}
if
(
This
->
url
)
{
CoTaskMemFree
(
This
->
url
);
SysFreeString
(
This
->
url
);
This
->
url
=
NULL
;
}
...
...
@@ -86,9 +87,13 @@ void set_current_mon(HTMLWindow *This, IMoniker *mon)
IMoniker_AddRef
(
mon
);
This
->
mon
=
mon
;
hres
=
IMoniker_GetDisplayName
(
mon
,
NULL
,
NULL
,
&
This
->
url
);
if
(
FAILED
(
hres
))
hres
=
IMoniker_GetDisplayName
(
mon
,
NULL
,
NULL
,
&
url
);
if
(
SUCCEEDED
(
hres
))
{
This
->
url
=
SysAllocString
(
url
);
CoTaskMemFree
(
url
);
}
else
{
WARN
(
"GetDisplayName failed: %08x
\n
"
,
hres
);
}
set_script_mode
(
This
,
use_gecko_script
(
This
)
?
SCRIPTMODE_GECKO
:
SCRIPTMODE_ACTIVESCRIPT
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment