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
56e2ac13
Commit
56e2ac13
authored
Dec 12, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msado15: Implement Field_get_Attributes and Field_get_DefinedSize.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a9452acb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
5 deletions
+33
-5
recordset.c
dlls/msado15/recordset.c
+12
-4
msado15.c
dlls/msado15/tests/msado15.c
+21
-1
No files found.
dlls/msado15/recordset.c
View file @
56e2ac13
...
...
@@ -147,14 +147,22 @@ static HRESULT WINAPI field_get_ActualSize( Field *iface, LONG *size )
static
HRESULT
WINAPI
field_get_Attributes
(
Field
*
iface
,
LONG
*
attrs
)
{
TRACE
(
"%p, %p
\n
"
,
iface
,
attrs
);
return
E_NOTIMPL
;
struct
field
*
field
=
impl_from_Field
(
iface
);
TRACE
(
"%p, %p
\n
"
,
field
,
attrs
);
*
attrs
=
field
->
attrs
;
return
S_OK
;
}
static
HRESULT
WINAPI
field_get_DefinedSize
(
Field
*
iface
,
LONG
*
size
)
{
FIXME
(
"%p, %p
\n
"
,
iface
,
size
);
return
E_NOTIMPL
;
struct
field
*
field
=
impl_from_Field
(
iface
);
TRACE
(
"%p, %p
\n
"
,
field
,
size
);
*
size
=
field
->
defined_size
;
return
S_OK
;
}
static
HRESULT
WINAPI
field_get_Name
(
Field
*
iface
,
BSTR
*
str
)
...
...
dlls/msado15/tests/msado15.c
View file @
56e2ac13
...
...
@@ -101,7 +101,9 @@ static void test_Fields(void)
Field
*
field
,
*
field2
;
VARIANT
val
,
index
;
BSTR
name
;
LONG
refs
,
count
;
LONG
refs
,
count
,
size
;
DataTypeEnum
type
;
FieldAttributeEnum
attrs
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_Recordset
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID__Recordset
,
(
void
**
)
&
recordset
);
...
...
@@ -164,6 +166,24 @@ static void test_Fields(void)
Field_Release
(
field2
);
SysFreeString
(
name
);
/* verify values set with _Append */
hr
=
Field_get_Name
(
field
,
&
name
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
name
,
L"field"
),
"got %s
\n
"
,
wine_dbgstr_w
(
name
)
);
SysFreeString
(
name
);
type
=
0xdead
;
hr
=
Field_get_Type
(
field
,
&
type
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
type
==
adInteger
,
"got %d
\n
"
,
type
);
size
=
-
1
;
hr
=
Field_get_DefinedSize
(
field
,
&
size
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
size
==
4
,
"got %d
\n
"
,
size
);
attrs
=
0xdead
;
hr
=
Field_get_Attributes
(
field
,
&
attrs
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
!
attrs
,
"got %d
\n
"
,
attrs
);
Field_Release
(
field
);
Fields_Release
(
fields
);
_Recordset_Release
(
recordset
);
...
...
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