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
0e2e8386
Commit
0e2e8386
authored
Aug 01, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Implement IRowPosition::Initialize().
parent
6297ba3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
rowpos.c
dlls/oledb32/rowpos.c
+13
-2
oledberr.h
include/oledberr.h
+1
-0
No files found.
dlls/oledb32/rowpos.c
View file @
0e2e8386
...
...
@@ -23,6 +23,7 @@
#include "ole2.h"
#include "oledb.h"
#include "oledberr.h"
#include "oledb_private.h"
#include "wine/debug.h"
...
...
@@ -33,6 +34,8 @@ typedef struct
{
IRowPosition
IRowPosition_iface
;
LONG
ref
;
IRowset
*
rowset
;
}
rowpos
;
static
inline
rowpos
*
impl_from_IRowPosition
(
IRowPosition
*
iface
)
...
...
@@ -79,7 +82,10 @@ static ULONG WINAPI rowpos_Release(IRowPosition* iface)
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
if
(
This
->
rowset
)
IRowset_Release
(
This
->
rowset
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
}
...
...
@@ -109,8 +115,12 @@ static HRESULT WINAPI rowpos_GetRowset(IRowPosition *iface, REFIID riid, IUnknow
static
HRESULT
WINAPI
rowpos_Initialize
(
IRowPosition
*
iface
,
IUnknown
*
rowset
)
{
rowpos
*
This
=
impl_from_IRowPosition
(
iface
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
rowset
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
rowset
);
if
(
This
->
rowset
)
return
DB_E_ALREADYINITIALIZED
;
return
IUnknown_QueryInterface
(
rowset
,
&
IID_IRowset
,
(
void
**
)
&
This
->
rowset
);
}
static
HRESULT
WINAPI
rowpos_SetRowPosition
(
IRowPosition
*
iface
,
HCHAPTER
chapter
,
...
...
@@ -148,6 +158,7 @@ HRESULT create_oledb_rowpos(IUnknown *outer, void **obj)
This
->
IRowPosition_iface
.
lpVtbl
=
&
rowpos_vtbl
;
This
->
ref
=
1
;
This
->
rowset
=
NULL
;
*
obj
=
&
This
->
IRowPosition_iface
;
...
...
include/oledberr.h
View file @
0e2e8386
...
...
@@ -42,6 +42,7 @@
#define DB_E_BADPROPERTYVALUE 0x80040e44
#define DB_E_INVALID 0x80040e45
#define DB_E_ALREADYINITIALIZED 0x80040e52
#define DB_E_DATAOVERFLOW 0x80040e57
#define DB_E_MISMATCHEDPROVIDER 0x80040e75
...
...
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