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
a5f78530
Commit
a5f78530
authored
May 01, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
May 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleacc: Add Client_get_accName implementation.
parent
99d0590b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
3 deletions
+36
-3
Makefile.in
dlls/oleacc/Makefile.in
+1
-1
client.c
dlls/oleacc/client.c
+23
-2
main.c
dlls/oleacc/main.c
+11
-0
oleacc_private.h
dlls/oleacc/oleacc_private.h
+1
-0
No files found.
dlls/oleacc/Makefile.in
View file @
a5f78530
MODULE
=
oleacc.dll
IMPORTLIB
=
oleacc
IMPORTS
=
ole32 user32 uuid
IMPORTS
=
uuid oleaut32 ole32 user32
C_SRCS
=
\
client.c
\
...
...
dlls/oleacc/client.c
View file @
a5f78530
...
...
@@ -142,8 +142,29 @@ static HRESULT WINAPI Client_get_accChild(IAccessible *iface,
static
HRESULT
WINAPI
Client_get_accName
(
IAccessible
*
iface
,
VARIANT
varID
,
BSTR
*
pszName
)
{
Client
*
This
=
impl_from_Client
(
iface
);
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_variant
(
&
varID
),
pszName
);
return
E_NOTIMPL
;
WCHAR
name
[
1024
];
UINT
i
,
len
;
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_variant
(
&
varID
),
pszName
);
*
pszName
=
NULL
;
if
(
convert_child_id
(
&
varID
)
!=
CHILDID_SELF
||
!
IsWindow
(
This
->
hwnd
))
return
E_INVALIDARG
;
len
=
SendMessageW
(
This
->
hwnd
,
WM_GETTEXT
,
sizeof
(
name
)
/
sizeof
(
WCHAR
),
(
LPARAM
)
name
);
if
(
!
len
)
return
S_FALSE
;
for
(
i
=
0
;
i
<
len
;
i
++
)
{
if
(
name
[
i
]
==
'&'
)
{
len
--
;
memmove
(
name
+
i
,
name
+
i
+
1
,
(
len
-
i
)
*
sizeof
(
WCHAR
));
break
;
}
}
*
pszName
=
SysAllocStringLen
(
name
,
len
);
return
*
pszName
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
WINAPI
Client_get_accValue
(
IAccessible
*
iface
,
VARIANT
varID
,
BSTR
*
pszValue
)
...
...
dlls/oleacc/main.c
View file @
a5f78530
...
...
@@ -70,6 +70,17 @@ const char *debugstr_variant(const VARIANT *v)
}
}
int
convert_child_id
(
VARIANT
*
v
)
{
switch
(
V_VT
(
v
))
{
case
VT_I4
:
return
V_I4
(
v
);
default:
FIXME
(
"unhandled child ID variant type: %d
\n
"
,
V_VT
(
v
));
return
-
1
;
}
}
HRESULT
WINAPI
CreateStdAccessibleObject
(
HWND
hwnd
,
LONG
idObject
,
REFIID
riidInterface
,
void
**
ppvObject
)
{
...
...
dlls/oleacc/oleacc_private.h
View file @
a5f78530
...
...
@@ -21,6 +21,7 @@
HRESULT
create_client_object
(
HWND
,
const
IID
*
,
void
**
)
DECLSPEC_HIDDEN
;
const
char
*
debugstr_variant
(
const
VARIANT
*
)
DECLSPEC_HIDDEN
;
int
convert_child_id
(
VARIANT
*
v
)
DECLSPEC_HIDDEN
;
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc_zero
(
size_t
len
)
{
...
...
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