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
1bc19b0c
Commit
1bc19b0c
authored
Oct 29, 2021
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Oct 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdasql: Add ICommandProperties interface to ICommandText.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
067c0e91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
session.c
dlls/msdasql/session.c
+54
-0
No files found.
dlls/msdasql/session.c
View file @
1bc19b0c
...
...
@@ -278,6 +278,7 @@ static ULONG WINAPI createcommand_Release(IDBCreateCommand *iface)
struct
command
{
ICommandText
ICommandText_iface
;
ICommandProperties
ICommandProperties_iface
;
LONG
refs
;
};
...
...
@@ -286,6 +287,11 @@ static inline struct command *impl_from_ICommandText( ICommandText *iface )
return
CONTAINING_RECORD
(
iface
,
struct
command
,
ICommandText_iface
);
}
static
inline
struct
command
*
impl_from_ICommandProperties
(
ICommandProperties
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
command
,
ICommandProperties_iface
);
}
static
HRESULT
WINAPI
command_QueryInterface
(
ICommandText
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
struct
command
*
command
=
impl_from_ICommandText
(
iface
);
...
...
@@ -299,6 +305,10 @@ static HRESULT WINAPI command_QueryInterface(ICommandText *iface, REFIID riid, v
{
*
ppv
=
&
command
->
ICommandText_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_ICommandProperties
,
riid
))
{
*
ppv
=
&
command
->
ICommandProperties_iface
;
}
if
(
*
ppv
)
{
...
...
@@ -379,6 +389,49 @@ static const ICommandTextVtbl commandVtbl =
command_SetCommandText
};
static
HRESULT
WINAPI
command_prop_QueryInterface
(
ICommandProperties
*
iface
,
REFIID
riid
,
void
**
out
)
{
struct
command
*
command
=
impl_from_ICommandProperties
(
iface
);
return
ICommandText_QueryInterface
(
&
command
->
ICommandText_iface
,
riid
,
out
);
}
static
ULONG
WINAPI
command_prop_AddRef
(
ICommandProperties
*
iface
)
{
struct
command
*
command
=
impl_from_ICommandProperties
(
iface
);
return
ICommandText_AddRef
(
&
command
->
ICommandText_iface
);
}
static
ULONG
WINAPI
command_prop_Release
(
ICommandProperties
*
iface
)
{
struct
command
*
command
=
impl_from_ICommandProperties
(
iface
);
return
ICommandText_Release
(
&
command
->
ICommandText_iface
);
}
static
HRESULT
WINAPI
command_prop_GetProperties
(
ICommandProperties
*
iface
,
ULONG
count
,
const
DBPROPIDSET
propertyidsets
[],
ULONG
*
sets_cnt
,
DBPROPSET
**
propertyset
)
{
struct
command
*
command
=
impl_from_ICommandProperties
(
iface
);
FIXME
(
"%p %d %p %p %p
\n
"
,
command
,
count
,
propertyidsets
,
sets_cnt
,
propertyset
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
command_prop_SetProperties
(
ICommandProperties
*
iface
,
ULONG
count
,
DBPROPSET
propertyset
[])
{
struct
command
*
command
=
impl_from_ICommandProperties
(
iface
);
FIXME
(
"%p %p
\n
"
,
command
,
propertyset
);
return
S_OK
;
}
static
const
ICommandPropertiesVtbl
commonpropsVtbl
=
{
command_prop_QueryInterface
,
command_prop_AddRef
,
command_prop_Release
,
command_prop_GetProperties
,
command_prop_SetProperties
};
static
HRESULT
WINAPI
createcommand_CreateCommand
(
IDBCreateCommand
*
iface
,
IUnknown
*
outer
,
REFIID
riid
,
IUnknown
**
out
)
{
...
...
@@ -396,6 +449,7 @@ static HRESULT WINAPI createcommand_CreateCommand(IDBCreateCommand *iface, IUnkn
return
E_OUTOFMEMORY
;
command
->
ICommandText_iface
.
lpVtbl
=
&
commandVtbl
;
command
->
ICommandProperties_iface
.
lpVtbl
=
&
commonpropsVtbl
;
command
->
refs
=
1
;
hr
=
ICommandText_QueryInterface
(
&
command
->
ICommandText_iface
,
riid
,
(
void
**
)
out
);
...
...
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