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
c6ac960f
Commit
c6ac960f
authored
Jan 04, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added Invoke(DISPID_READYSTATE) implementation.
parent
667df8e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
3 deletions
+37
-3
htmldoc.c
dlls/mshtml/htmldoc.c
+18
-2
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+19
-1
No files found.
dlls/mshtml/htmldoc.c
View file @
c6ac960f
...
...
@@ -229,8 +229,24 @@ static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMe
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
FIXME
(
"(%p)->(%d %s %d %d %p %p %p %p)
\n
"
,
iface
,
dispIdMember
,
debugstr_guid
(
riid
),
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
TRACE
(
"(%p)->(%d %s %d %d %p %p %p %p)
\n
"
,
This
,
dispIdMember
,
debugstr_guid
(
riid
),
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
switch
(
dispIdMember
)
{
case
DISPID_READYSTATE
:
if
(
!
(
wFlags
&
DISPATCH_PROPERTYGET
))
return
E_INVALIDARG
;
V_VT
(
pVarResult
)
=
VT_I4
;
V_I4
(
pVarResult
)
=
This
->
readystate
;
return
S_OK
;
default:
FIXME
(
"Unsupported dispid %d
\n
"
,
dispIdMember
);
}
return
E_NOTIMPL
;
}
...
...
dlls/mshtml/tests/htmldoc.c
View file @
c6ac960f
...
...
@@ -146,6 +146,7 @@ static int stream_read, protocol_read;
static
enum
load_state_t
{
LD_DOLOAD
,
LD_LOADING
,
LD_LOADED
,
LD_INTERACTIVE
,
LD_COMPLETE
,
LD_NO
...
...
@@ -2392,7 +2393,9 @@ static LRESULT WINAPI wnd_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
static
void
_test_readyState
(
unsigned
line
,
IUnknown
*
unk
)
{
IHTMLDocument2
*
htmldoc
;
DISPPARAMS
dispparams
;
BSTR
state
;
VARIANT
out
;
HRESULT
hres
;
static
const
WCHAR
wszUninitialized
[]
=
{
'u'
,
'n'
,
'i'
,
'n'
,
'i'
,
't'
,
'i'
,
'a'
,
'l'
,
'i'
,
'z'
,
'e'
,
'd'
,
0
};
...
...
@@ -2403,6 +2406,7 @@ static void _test_readyState(unsigned line, IUnknown *unk)
static
const
LPCWSTR
expected_state
[]
=
{
wszUninitialized
,
wszLoading
,
NULL
,
wszInteractive
,
wszComplete
,
wszUninitialized
...
...
@@ -2426,7 +2430,21 @@ static void _test_readyState(unsigned line, IUnknown *unk)
debugstr_w
(
state
),
load_state
);
SysFreeString
(
state
);
IHTMLDocument_Release
(
htmldoc
);
dispparams
.
cArgs
=
0
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
dispparams
.
rgvarg
=
NULL
;
VariantInit
(
&
out
);
hres
=
IHTMLDocument2_Invoke
(
htmldoc
,
DISPID_READYSTATE
,
&
IID_NULL
,
0
,
DISPATCH_PROPERTYGET
,
&
dispparams
,
&
out
,
NULL
,
NULL
);
ok
(
hres
==
S_OK
,
"Invoke(DISPID_READYSTATE) failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
V_VT
(
&
out
)
==
VT_I4
,
"V_VT(out)=%d
\n
"
,
V_VT
(
&
out
));
ok_
(
__FILE__
,
line
)
(
V_I4
(
&
out
)
==
load_state
%
5
,
"VT_I4(out)=%d, expected %d
\n
"
,
V_I4
(
&
out
),
load_state
%
5
);
IHTMLDocument2_Release
(
htmldoc
);
}
static
void
test_ConnectionPoint
(
IConnectionPointContainer
*
container
,
REFIID
riid
)
...
...
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