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
701885b2
Commit
701885b2
authored
Aug 25, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 25, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added test of IPersistMoniker::Load.
- Fix Wine to pass the test.
parent
fd75880b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
171 additions
and
42 deletions
+171
-42
persist.c
dlls/mshtml/persist.c
+19
-2
Makefile.in
dlls/mshtml/tests/Makefile.in
+1
-1
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+151
-39
No files found.
dlls/mshtml/persist.c
View file @
701885b2
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include "winbase.h"
#include "winbase.h"
#include "winuser.h"
#include "winuser.h"
#include "ole2.h"
#include "ole2.h"
#include "shlguid.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
@@ -290,12 +291,12 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
...
@@ -290,12 +291,12 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
HTMLDocument
*
This
=
PERSISTMON_THIS
(
iface
);
HTMLDocument
*
This
=
PERSISTMON_THIS
(
iface
);
IBindCtx
*
pbind
;
IBindCtx
*
pbind
;
BindStatusCallback
*
callback
;
BindStatusCallback
*
callback
;
IStream
*
str
;
IStream
*
str
=
NULL
;
LPOLESTR
url
;
LPOLESTR
url
;
HRESULT
hres
;
HRESULT
hres
;
nsresult
nsres
;
nsresult
nsres
;
FIXM
E
(
"(%p)->(%x %p %p %08lx)
\n
"
,
This
,
fFullyAvailable
,
pimkName
,
pibc
,
grfMode
);
TRAC
E
(
"(%p)->(%x %p %p %08lx)
\n
"
,
This
,
fFullyAvailable
,
pimkName
,
pibc
,
grfMode
);
if
(
pibc
)
{
if
(
pibc
)
{
IUnknown
*
unk
=
NULL
;
IUnknown
*
unk
=
NULL
;
...
@@ -330,6 +331,8 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
...
@@ -330,6 +331,8 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
IUnknown_Release
(
unk
);
IUnknown_Release
(
unk
);
}
}
}
}
HTMLDocument_LockContainer
(
This
,
TRUE
);
hres
=
IMoniker_GetDisplayName
(
pimkName
,
pibc
,
NULL
,
&
url
);
hres
=
IMoniker_GetDisplayName
(
pimkName
,
pibc
,
NULL
,
&
url
);
if
(
FAILED
(
hres
))
{
if
(
FAILED
(
hres
))
{
...
@@ -339,6 +342,20 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
...
@@ -339,6 +342,20 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
TRACE
(
"got url: %s
\n
"
,
debugstr_w
(
url
));
TRACE
(
"got url: %s
\n
"
,
debugstr_w
(
url
));
if
(
This
->
client
)
{
IOleCommandTarget
*
cmdtrg
=
NULL
;
hres
=
IOleClientSite_QueryInterface
(
This
->
client
,
&
IID_IOleCommandTarget
,
(
void
**
)
&
cmdtrg
);
if
(
SUCCEEDED
(
hres
))
{
VARIANT
var
;
V_VT
(
&
var
)
=
VT_I4
;
V_I4
(
&
var
)
=
0
;
IOleCommandTarget_Exec
(
cmdtrg
,
&
CGID_ShellDocView
,
37
,
0
,
&
var
,
NULL
);
}
}
if
(
This
->
nscontainer
&&
!
This
->
nscontainer
->
stream
)
{
if
(
This
->
nscontainer
&&
!
This
->
nscontainer
->
stream
)
{
/*
/*
* This is a workaround for older Gecko that doesn't support nsIWebBrowserStream.
* This is a workaround for older Gecko that doesn't support nsIWebBrowserStream.
...
...
dlls/mshtml/tests/Makefile.in
View file @
701885b2
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
SRCDIR
=
@srcdir@
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
mshtml.dll
TESTDLL
=
mshtml.dll
IMPORTS
=
ole32 user32
IMPORTS
=
ole32 user32
urlmon
EXTRALIBS
=
-luuid
EXTRALIBS
=
-luuid
CTESTS
=
\
CTESTS
=
\
...
...
dlls/mshtml/tests/htmldoc.c
View file @
701885b2
This diff is collapsed.
Click to expand it.
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