Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e0157ba2
Commit
e0157ba2
authored
Jun 03, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Store BSCallback in NSContainer and use it instead of load_call.
parent
813e82f2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
nsembed.c
dlls/mshtml/nsembed.c
+1
-1
nsio.c
dlls/mshtml/nsio.c
+1
-1
persist.c
dlls/mshtml/persist.c
+10
-3
No files found.
dlls/mshtml/mshtml_private.h
View file @
e0157ba2
...
...
@@ -112,7 +112,7 @@ struct NSContainer {
HWND
hwnd
;
B
OOL
load_call
;
/* hack */
B
SCallback
*
bscallback
;
/* hack */
};
struct
BSCallback
{
...
...
dlls/mshtml/nsembed.c
View file @
e0157ba2
...
...
@@ -1153,7 +1153,7 @@ NSContainer *NSContainer_Create(HTMLDocument *doc, NSContainer *parent)
ret
->
doc
=
doc
;
ret
->
ref
=
1
;
ret
->
load_call
=
FALSE
;
ret
->
bscallback
=
NULL
;
if
(
parent
)
nsIWebBrowserChrome_AddRef
(
NSWBCHROME
(
parent
));
...
...
dlls/mshtml/nsio.c
View file @
e0157ba2
...
...
@@ -589,7 +589,7 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
return
NS_ERROR_UNEXPECTED
;
}
if
(
container
->
load_call
)
{
if
(
container
->
bscallback
)
{
nsIWebBrowserChrome_Release
(
NSWBCHROME
(
container
));
}
else
{
BOOL
cont
=
before_async_open
(
This
,
container
);
...
...
dlls/mshtml/persist.c
View file @
e0157ba2
...
...
@@ -154,6 +154,7 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
IMoniker
*
pimkName
,
LPBC
pibc
,
DWORD
grfMode
)
{
HTMLDocument
*
This
=
PERSISTMON_THIS
(
iface
);
BSCallback
*
bscallback
;
LPOLESTR
url
;
HRESULT
hres
;
nsresult
nsres
;
...
...
@@ -214,24 +215,27 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
}
}
bscallback
=
create_bscallback
(
This
,
url
);
if
(
This
->
nscontainer
)
{
nsIInputStream
*
post_data_stream
=
get_post_data_stream
(
pibc
);
This
->
nscontainer
->
load_call
=
TRUE
;
This
->
nscontainer
->
bscallback
=
bscallback
;
nsres
=
nsIWebNavigation_LoadURI
(
This
->
nscontainer
->
navigation
,
url
,
LOAD_FLAGS_NONE
,
NULL
,
post_data_stream
,
NULL
);
This
->
nscontainer
->
load_call
=
FALSE
;
This
->
nscontainer
->
bscallback
=
NULL
;
if
(
post_data_stream
)
nsIInputStream_Release
(
post_data_stream
);
if
(
NS_SUCCEEDED
(
nsres
))
{
IBindStatusCallback_Release
(
STATUSCLB
(
bscallback
));
CoTaskMemFree
(
url
);
return
S_OK
;
}
else
{
WARN
(
"LoadURI failed: %08lx
\n
"
,
nsres
);
}
}
}
/* FIXME: Use grfMode */
...
...
@@ -240,6 +244,9 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
if
(
pibc
)
FIXME
(
"not supported pibc
\n
"
);
IBindStatusCallback_Release
(
STATUSCLB
(
bscallback
));
CoTaskMemFree
(
url
);
return
S_OK
;
}
...
...
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