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
ebf00708
Commit
ebf00708
authored
Nov 07, 2021
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Sep 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdasql: Implement ICommandProperties SetProperties.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
parent
323355a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
session.c
dlls/msdasql/session.c
+35
-1
No files found.
dlls/msdasql/session.c
View file @
ebf00708
...
...
@@ -1233,7 +1233,41 @@ static HRESULT WINAPI command_prop_SetProperties(ICommandProperties *iface, ULON
DBPROPSET
propertyset
[])
{
struct
command
*
command
=
impl_from_ICommandProperties
(
iface
);
FIXME
(
"%p, %lu, %p
\n
"
,
command
,
count
,
propertyset
);
int
i
,
j
,
k
;
TRACE
(
"%p %lu, %p
\n
"
,
command
,
count
,
propertyset
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
TRACE
(
"set %s, count %ld
\n
"
,
debugstr_guid
(
&
propertyset
[
i
].
guidPropertySet
),
propertyset
[
i
].
cProperties
);
for
(
j
=
0
;
j
<
propertyset
[
i
].
cProperties
;
j
++
)
{
for
(
k
=
0
;
k
<
command
->
prop_count
;
k
++
)
{
if
(
command
->
properties
[
k
].
property_id
==
propertyset
[
i
].
rgProperties
[
j
].
dwPropertyID
)
{
TRACE
(
"Found property 0x%08lx
\n
"
,
command
->
properties
[
k
].
property_id
);
if
(
command
->
properties
[
k
].
flags
&
DBPROPFLAGS_WRITE
)
{
if
(
command
->
properties
[
k
].
vartype
==
VT_BOOL
)
{
command
->
properties
[
k
].
value
=
V_BOOL
(
&
propertyset
[
i
].
rgProperties
[
j
].
vValue
);
}
else
if
(
command
->
properties
[
k
].
vartype
==
VT_I4
)
{
command
->
properties
[
k
].
value
=
V_I4
(
&
propertyset
[
i
].
rgProperties
[
j
].
vValue
);
}
else
ERR
(
"Unknown variant type %d
\n
"
,
command
->
properties
[
j
].
vartype
);
}
else
WARN
(
"Attempting to set Readonly property
\n
"
);
break
;
}
}
}
}
return
S_OK
;
}
...
...
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