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
149c392e
Commit
149c392e
authored
Aug 23, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Implement IRowPosition_GetRowset().
parent
def652e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
rowpos.c
dlls/oledb32/rowpos.c
+5
-2
database.c
dlls/oledb32/tests/database.c
+7
-0
No files found.
dlls/oledb32/rowpos.c
View file @
149c392e
...
...
@@ -168,8 +168,11 @@ static HRESULT WINAPI rowpos_GetRowPosition(IRowPosition *iface, HCHAPTER *chapt
static
HRESULT
WINAPI
rowpos_GetRowset
(
IRowPosition
*
iface
,
REFIID
riid
,
IUnknown
**
rowset
)
{
rowpos
*
This
=
impl_from_IRowPosition
(
iface
);
FIXME
(
"(%p)->(%s %p): stub
\n
"
,
This
,
debugstr_guid
(
riid
),
rowset
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
rowset
);
if
(
!
This
->
rowset
)
return
E_UNEXPECTED
;
return
IRowset_QueryInterface
(
This
->
rowset
,
riid
,
(
void
**
)
rowset
);
}
static
HRESULT
WINAPI
rowpos_Initialize
(
IRowPosition
*
iface
,
IUnknown
*
rowset
)
...
...
dlls/oledb32/tests/database.c
View file @
149c392e
...
...
@@ -472,6 +472,7 @@ static void init_onchange_sink(IRowPosition *rowpos)
static
void
test_rowpos_clearrowposition
(
void
)
{
IRowPosition
*
rowpos
;
IUnknown
*
unk
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_OLEDB_ROWPOSITIONLIBRARY
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IRowPosition
,
(
void
**
)
&
rowpos
);
...
...
@@ -480,10 +481,16 @@ static void test_rowpos_clearrowposition(void)
hr
=
IRowPosition_ClearRowPosition
(
rowpos
);
ok
(
hr
==
E_UNEXPECTED
,
"got %08x
\n
"
,
hr
);
hr
=
IRowPosition_GetRowset
(
rowpos
,
&
IID_IStream
,
&
unk
);
ok
(
hr
==
E_UNEXPECTED
,
"got %08x
\n
"
,
hr
);
init_test_rset
();
hr
=
IRowPosition_Initialize
(
rowpos
,
(
IUnknown
*
)
&
test_rset
.
IRowset_iface
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IRowPosition_GetRowset
(
rowpos
,
&
IID_IRowset
,
&
unk
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
init_onchange_sink
(
rowpos
);
hr
=
IRowPosition_ClearRowPosition
(
rowpos
);
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