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
55020bf2
Commit
55020bf2
authored
Dec 13, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msado15: Implement _Recordset_get_BOF and _Recordset_get_EOF.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
435d0924
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
recordset.c
dlls/msado15/recordset.c
+12
-4
msado15.c
dlls/msado15/tests/msado15.c
+18
-0
No files found.
dlls/msado15/recordset.c
View file @
55020bf2
...
...
@@ -772,8 +772,12 @@ static HRESULT WINAPI recordset_get_ActiveConnection( _Recordset *iface, VARIANT
static
HRESULT
WINAPI
recordset_get_BOF
(
_Recordset
*
iface
,
VARIANT_BOOL
*
bof
)
{
FIXME
(
"%p, %p
\n
"
,
iface
,
bof
);
return
E_NOTIMPL
;
struct
recordset
*
recordset
=
impl_from_Recordset
(
iface
);
TRACE
(
"%p, %p
\n
"
,
recordset
,
bof
);
*
bof
=
(
recordset
->
index
<
0
)
?
VARIANT_TRUE
:
VARIANT_FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
recordset_get_Bookmark
(
_Recordset
*
iface
,
VARIANT
*
bookmark
)
...
...
@@ -814,8 +818,12 @@ static HRESULT WINAPI recordset_put_CursorType( _Recordset *iface, CursorTypeEnu
static
HRESULT
WINAPI
recordset_get_EOF
(
_Recordset
*
iface
,
VARIANT_BOOL
*
eof
)
{
FIXME
(
"%p, %p
\n
"
,
iface
,
eof
);
return
E_NOTIMPL
;
struct
recordset
*
recordset
=
impl_from_Recordset
(
iface
);
TRACE
(
"%p, %p
\n
"
,
recordset
,
eof
);
*
eof
=
(
!
recordset
->
count
||
recordset
->
index
>=
recordset
->
count
)
?
VARIANT_TRUE
:
VARIANT_FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
recordset_get_Fields
(
_Recordset
*
iface
,
Fields
**
obj
)
...
...
dlls/msado15/tests/msado15.c
View file @
55020bf2
...
...
@@ -25,6 +25,20 @@
#define MAKE_ADO_HRESULT( err ) MAKE_HRESULT( SEVERITY_ERROR, FACILITY_CONTROL, err )
static
BOOL
is_bof
(
_Recordset
*
recordset
)
{
VARIANT_BOOL
bof
=
VARIANT_FALSE
;
_Recordset_get_BOF
(
recordset
,
&
bof
);
return
bof
==
VARIANT_TRUE
;
}
static
BOOL
is_eof
(
_Recordset
*
recordset
)
{
VARIANT_BOOL
eof
=
VARIANT_FALSE
;
_Recordset_get_EOF
(
recordset
,
&
eof
);
return
eof
==
VARIANT_TRUE
;
}
static
LONG
get_refs_field
(
Field
*
field
)
{
Field_AddRef
(
field
);
...
...
@@ -122,6 +136,8 @@ static void test_Recordset(void)
hr
=
_Recordset_Open
(
recordset
,
missing
,
missing
,
adOpenStatic
,
adLockBatchOptimistic
,
adCmdUnspecified
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
is_eof
(
recordset
),
"not eof
\n
"
);
ok
(
is_bof
(
recordset
),
"not bof
\n
"
);
state
=
-
1
;
hr
=
_Recordset_get_State
(
recordset
,
&
state
);
...
...
@@ -130,6 +146,8 @@ static void test_Recordset(void)
hr
=
_Recordset_AddNew
(
recordset
,
missing
,
missing
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
!
is_eof
(
recordset
),
"eof
\n
"
);
ok
(
!
is_bof
(
recordset
),
"bof
\n
"
);
hr
=
_Recordset_Close
(
recordset
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
...
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