Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cqwrteur
wine
Commits
8c5f4f08
Commit
8c5f4f08
authored
14 years ago
by
Huw Davies
Committed by
Alexandre Julliard
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
msdaps: Add support for remoting IRowset_GetData.
parent
a437cc25
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/msdaps/row_server.c
+48
-4
48 additions, 4 deletions
dlls/msdaps/row_server.c
with
48 additions
and
4 deletions
dlls/msdaps/row_server.c
+
48
−
4
View file @
8c5f4f08
...
...
@@ -257,8 +257,19 @@ static HRESULT WINAPI server_GetData(IWineRowServer* iface, HROW hRow,
HACCESSOR
hAccessor
,
BYTE
*
pData
,
DWORD
size
)
{
server
*
This
=
impl_from_IWineRowServer
(
iface
);
FIXME
(
"(%p)->(%08lx, %08lx, %p, %d): stub
\n
"
,
This
,
hRow
,
hAccessor
,
pData
,
size
);
return
E_NOTIMPL
;
IRowset
*
rowset
;
HRESULT
hr
;
TRACE
(
"(%p)->(%08lx, %08lx, %p, %d)
\n
"
,
This
,
hRow
,
hAccessor
,
pData
,
size
);
hr
=
IUnknown_QueryInterface
(
This
->
inner_unk
,
&
IID_IRowset
,
(
void
**
)
&
rowset
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
IRowset_GetData
(
rowset
,
hRow
,
hAccessor
,
pData
);
IRowset_Release
(
rowset
);
TRACE
(
"returning %08x
\n
"
,
hr
);
return
hr
;
}
static
HRESULT
WINAPI
server_GetNextRows
(
IWineRowServer
*
iface
,
HCHAPTER
hReserved
,
DBROWOFFSET
lRowsOffset
,
...
...
@@ -822,10 +833,43 @@ static HRESULT WINAPI rowset_AddRefRows(IRowset *iface, DBCOUNTITEM cRows, const
static
HRESULT
WINAPI
rowset_GetData
(
IRowset
*
iface
,
HROW
hRow
,
HACCESSOR
hAccessor
,
void
*
pData
)
{
rowset_proxy
*
This
=
impl_from_IRowset
(
iface
);
HRESULT
hr
;
IAccessor
*
accessor
;
DBACCESSORFLAGS
flags
;
DBCOUNTITEM
count
,
i
;
DBBINDING
*
bindings
;
DWORD
max_len
=
0
;
FIXM
E
(
"(%p)->(%lx, %lx, %p)
: stub
\n
"
,
This
,
hRow
,
hAccessor
,
pData
);
TRAC
E
(
"(%p)->(%lx, %lx, %p)
\n
"
,
This
,
hRow
,
hAccessor
,
pData
);
return
E_NOTIMPL
;
hr
=
IRowset_QueryInterface
(
iface
,
&
IID_IAccessor
,
(
void
**
)
&
accessor
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
IAccessor_GetBindings
(
accessor
,
hAccessor
,
&
flags
,
&
count
,
&
bindings
);
IAccessor_Release
(
accessor
);
if
(
FAILED
(
hr
))
return
hr
;
TRACE
(
"got %d bindings
\n
"
,
count
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
TRACE
(
"%d
\t
ord %d offs: val %d len %d stat %d, part %x, max len %d type %04x
\n
"
,
i
,
bindings
[
i
].
iOrdinal
,
bindings
[
i
].
obValue
,
bindings
[
i
].
obLength
,
bindings
[
i
].
obStatus
,
bindings
[
i
].
dwPart
,
bindings
[
i
].
cbMaxLen
,
bindings
[
i
].
wType
);
if
(
bindings
[
i
].
dwPart
&
DBPART_LENGTH
&&
bindings
[
i
].
obLength
>=
max_len
)
max_len
=
bindings
[
i
].
obLength
+
sizeof
(
DBLENGTH
);
if
(
bindings
[
i
].
dwPart
&
DBPART_STATUS
&&
bindings
[
i
].
obStatus
>=
max_len
)
max_len
=
bindings
[
i
].
obStatus
+
sizeof
(
DWORD
);
if
(
bindings
[
i
].
dwPart
&
DBPART_VALUE
&&
bindings
[
i
].
obValue
>=
max_len
)
max_len
=
bindings
[
i
].
obValue
+
db_type_size
(
bindings
[
i
].
wType
,
bindings
[
i
].
cbMaxLen
);
}
TRACE
(
"max_len %d
\n
"
,
max_len
);
CoTaskMemFree
(
bindings
);
hr
=
IWineRowServer_GetData
(
This
->
server
,
hRow
,
hAccessor
,
pData
,
max_len
);
return
hr
;
}
static
HRESULT
WINAPI
rowset_GetNextRows
(
IRowset
*
iface
,
HCHAPTER
hReserved
,
DBROWOFFSET
lRowsOffset
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment