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
6f1c3f36
Commit
6f1c3f36
authored
Jan 03, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Use OnObjectAvailable in http_load_hack.
parent
e3fb7ba8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
17 deletions
+10
-17
navigate.c
dlls/shdocvw/navigate.c
+10
-17
No files found.
dlls/shdocvw/navigate.c
View file @
6f1c3f36
...
...
@@ -466,8 +466,8 @@ static BOOL try_application_url(LPCWSTR url)
static
HRESULT
http_load_hack
(
DocHost
*
This
,
IMoniker
*
mon
,
IBindStatusCallback
*
callback
,
IBindCtx
*
bindctx
)
{
IOleObject
*
oleobj
;
IPersistMoniker
*
persist
;
IUnknown
*
doc
;
HRESULT
hres
;
/*
...
...
@@ -478,40 +478,33 @@ static HRESULT http_load_hack(DocHost *This, IMoniker *mon, IBindStatusCallback
hres
=
CoCreateInstance
(
&
CLSID_HTMLDocument
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IUnknown
,
(
void
**
)
&
This
->
document
);
&
IID_IUnknown
,
(
void
**
)
&
doc
);
if
(
FAILED
(
hres
))
{
ERR
(
"Could not create HTMLDocument: %08x
\n
"
,
hres
);
return
hres
;
}
hres
=
IUnknown_QueryInterface
(
This
->
document
,
&
IID_IPersistMoniker
,
(
void
**
)
&
persist
);
hres
=
IUnknown_QueryInterface
(
doc
,
&
IID_IPersistMoniker
,
(
void
**
)
&
persist
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IPersistMoniker_Load
(
persist
,
FALSE
,
mon
,
bindctx
,
0
);
IPersistMoniker_Release
(
persist
);
if
(
SUCCEEDED
(
hres
))
hres
=
IBindStatusCallback_OnObjectAvailable
(
callback
,
&
IID_IUnknown
,
doc
);
else
WARN
(
"Load failed: %08x
\n
"
,
hres
);
IUnknown_Release
(
doc
);
if
(
This
->
frame
)
{
static
const
WCHAR
empty
[]
=
{
0
};
IOleInPlaceFrame_SetStatusText
(
This
->
frame
,
empty
);
/* FIXME */
}
if
(
FAILED
(
hres
))
{
WARN
(
"Load failed: %08x
\n
"
,
hres
);
return
hres
;
}
hres
=
IUnknown_QueryInterface
(
This
->
document
,
&
IID_IOleObject
,
(
void
**
)
&
oleobj
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IOleObject_SetClientSite
(
oleobj
,
CLIENTSITE
(
This
));
IOleObject_Release
(
oleobj
);
PostMessageW
(
This
->
hwnd
,
WB_WM_NAVIGATE2
,
0
,
0
);
return
hres
;
}
...
...
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