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
eae4e45c
Commit
eae4e45c
authored
Jul 14, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added more tests.
- Make tests pass under Wine.
parent
737978a8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
5 deletions
+30
-5
oleobj.c
dlls/mshtml/oleobj.c
+29
-4
Makefile.in
dlls/mshtml/tests/Makefile.in
+1
-1
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+0
-0
No files found.
dlls/mshtml/oleobj.c
View file @
eae4e45c
...
...
@@ -42,7 +42,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
* IOleObject implementation
*/
#define OLEOBJ_THIS(iface)
(HTMLDocument*)((char*)(iface)-offsetof(HTMLDocument,lpOleObjectVtbl)
)
#define OLEOBJ_THIS(iface)
DEFINE_THIS(HTMLDocument, OleObject, iface
)
static
HRESULT
WINAPI
OleObject_QueryInterface
(
IOleObject
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
...
...
@@ -111,6 +111,19 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
}
}
/* Native calls here GetWindow. What is it for?
* We don't have anything to do with it here (yet). */
if
(
pClientSite
)
{
IOleWindow
*
pOleWindow
=
NULL
;
HWND
hwnd
;
hres
=
IOleClientSite_QueryInterface
(
pClientSite
,
&
IID_IOleWindow
,
(
void
**
)
&
pOleWindow
);
if
(
SUCCEEDED
(
hres
))
{
IOleWindow_GetWindow
(
pOleWindow
,
&
hwnd
);
IOleWindow_Release
(
pOleWindow
);
}
}
IOleClientSite_AddRef
(
pClientSite
);
This
->
client
=
pClientSite
;
This
->
hostui
=
pDocHostUIHandler
;
...
...
@@ -144,8 +157,20 @@ static HRESULT WINAPI OleObject_SetHostNames(IOleObject *iface, LPCOLESTR szCont
static
HRESULT
WINAPI
OleObject_Close
(
IOleObject
*
iface
,
DWORD
dwSaveOption
)
{
HTMLDocument
*
This
=
OLEOBJ_THIS
(
iface
);
HRESULT
hres
;
FIXME
(
"(%p)->(%08lx)
\n
"
,
This
,
dwSaveOption
);
return
E_NOTIMPL
;
if
(
This
->
client
)
{
IOleContainer
*
container
;
hres
=
IOleClientSite_GetContainer
(
This
->
client
,
&
container
);
if
(
SUCCEEDED
(
hres
))
{
IOleContainer_LockContainer
(
container
,
FALSE
);
IOleContainer_Release
(
container
);
}
}
return
S_OK
;
}
static
HRESULT
WINAPI
OleObject_SetMoniker
(
IOleObject
*
iface
,
DWORD
dwWhichMoniker
,
IMoniker
*
pmk
)
...
...
@@ -343,7 +368,7 @@ static const IOleObjectVtbl OleObjectVtbl = {
* IOleDocument implementation
*/
#define OLEDOC_THIS(iface)
(HTMLDocument*)((char*)(iface)-offsetof(HTMLDocument,lpOleDocumentVtbl)
)
#define OLEDOC_THIS(iface)
DEFINE_THIS(HTMLDocument, OleDocument, iface
)
static
HRESULT
WINAPI
OleDocument_QueryInterface
(
IOleDocument
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
...
...
@@ -425,7 +450,7 @@ static const IOleDocumentVtbl OleDocumentVtbl = {
* IOleCommandTarget implementation
*/
#define CMDTARGET_THIS(iface)
(HTMLDocument*)((char*)(iface)-offsetof(HTMLDocument,lpOleCommandTargetVtbl)
)
#define CMDTARGET_THIS(iface)
DEFINE_THIS(HTMLDocument, OleCommandTarget, iface
)
static
HRESULT
WINAPI
OleCommandTarget_QueryInterface
(
IOleCommandTarget
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
dlls/mshtml/tests/Makefile.in
View file @
eae4e45c
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
mshtml.dll
IMPORTS
=
ole32
IMPORTS
=
ole32
user32
EXTRALIBS
=
-luuid
CTESTS
=
\
...
...
dlls/mshtml/tests/htmldoc.c
View file @
eae4e45c
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