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
40bdbda8
Commit
40bdbda8
authored
May 09, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
May 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleacc: Add Client_get_accParent implementation.
parent
e99dc1ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
client.c
dlls/oleacc/client.c
+5
-2
main.c
dlls/oleacc/tests/main.c
+13
-0
No files found.
dlls/oleacc/client.c
View file @
40bdbda8
...
...
@@ -113,8 +113,11 @@ static HRESULT WINAPI Client_Invoke(IAccessible *iface, DISPID dispIdMember,
static
HRESULT
WINAPI
Client_get_accParent
(
IAccessible
*
iface
,
IDispatch
**
ppdispParent
)
{
Client
*
This
=
impl_from_Client
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
ppdispParent
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
ppdispParent
);
return
AccessibleObjectFromWindow
(
This
->
hwnd
,
OBJID_WINDOW
,
&
IID_IDispatch
,
(
void
**
)
ppdispParent
);
}
static
HRESULT
WINAPI
Client_get_accChildCount
(
IAccessible
*
iface
,
LONG
*
pcountChildren
)
...
...
dlls/oleacc/tests/main.c
View file @
40bdbda8
...
...
@@ -225,6 +225,8 @@ static LRESULT WINAPI test_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARA
return
E_UNEXPECTED
;
if
(
lparam
==
(
DWORD
)
OBJID_CLIENT
)
return
LresultFromObject
(
&
IID_IUnknown
,
wparam
,
&
Object
);
if
(
lparam
==
(
DWORD
)
OBJID_WINDOW
)
return
0
;
ok
(
0
,
"unexpected (%ld)
\n
"
,
lparam
);
return
0
;
...
...
@@ -311,6 +313,7 @@ static void test_default_client_accessible_object(void)
static
const
WCHAR
shortcutW
[]
=
{
'A'
,
'l'
,
't'
,
'+'
,
't'
,
0
};
IAccessible
*
acc
;
IDispatch
*
disp
;
HWND
chld
,
hwnd
;
HRESULT
hr
;
VARIANT
vid
,
v
;
...
...
@@ -427,6 +430,11 @@ static void test_default_client_accessible_object(void)
ok
(
V_VT
(
&
v
)
==
VT_I4
,
"V_VT(&v) = %d
\n
"
,
V_VT
(
&
v
));
ok
(
V_I4
(
&
v
)
==
0
,
"V_I4(&v) = %d
\n
"
,
V_I4
(
&
v
));
hr
=
IAccessible_get_accParent
(
acc
,
&
disp
);
ok
(
hr
==
S_OK
,
"got %x
\n
"
,
hr
);
ok
(
disp
!=
NULL
,
"disp == NULL
\n
"
);
IDispatch_Release
(
disp
);
DestroyWindow
(
hwnd
);
hr
=
IAccessible_get_accChildCount
(
acc
,
&
l
);
...
...
@@ -454,6 +462,11 @@ static void test_default_client_accessible_object(void)
ok
(
V_VT
(
&
v
)
==
VT_I4
,
"V_VT(&v) = %d
\n
"
,
V_VT
(
&
v
));
ok
(
V_I4
(
&
v
)
==
0
,
"V_I4(&v) = %d
\n
"
,
V_I4
(
&
v
));
disp
=
(
void
*
)
0xdeadbeef
;
hr
=
IAccessible_get_accParent
(
acc
,
&
disp
);
ok
(
hr
==
E_FAIL
,
"got %x
\n
"
,
hr
);
ok
(
disp
==
NULL
,
"disp = %p
\n
"
,
disp
);
IAccessible_Release
(
acc
);
}
...
...
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