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
6e351769
Commit
6e351769
authored
Oct 25, 2021
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Oct 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdasql: Add IDBInitialize support.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
91669063
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
msdasql_main.c
dlls/msdasql/msdasql_main.c
+60
-0
No files found.
dlls/msdasql/msdasql_main.c
View file @
6e351769
...
...
@@ -104,6 +104,7 @@ struct msdasql
{
IUnknown
MSDASQL_iface
;
IDBProperties
IDBProperties_iface
;
IDBInitialize
IDBInitialize_iface
;
LONG
ref
;
};
...
...
@@ -118,6 +119,11 @@ static inline struct msdasql *impl_from_IDBProperties(IDBProperties *iface)
return
CONTAINING_RECORD
(
iface
,
struct
msdasql
,
IDBProperties_iface
);
}
static
inline
struct
msdasql
*
impl_from_IDBInitialize
(
IDBInitialize
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
msdasql
,
IDBInitialize_iface
);
}
static
HRESULT
WINAPI
msdsql_QueryInterface
(
IUnknown
*
iface
,
REFIID
riid
,
void
**
out
)
{
struct
msdasql
*
provider
=
impl_from_IUnknown
(
iface
);
...
...
@@ -133,6 +139,10 @@ static HRESULT WINAPI msdsql_QueryInterface(IUnknown *iface, REFIID riid, void *
{
*
out
=
&
provider
->
IDBProperties_iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDBInitialize
))
{
*
out
=
&
provider
->
IDBInitialize_iface
;
}
else
{
FIXME
(
"(%s, %p)
\n
"
,
debugstr_guid
(
riid
),
out
);
...
...
@@ -239,6 +249,55 @@ static const struct IDBPropertiesVtbl dbprops_vtbl =
dbprops_SetProperties
};
static
HRESULT
WINAPI
dbinit_QueryInterface
(
IDBInitialize
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
struct
msdasql
*
provider
=
impl_from_IDBInitialize
(
iface
);
return
IUnknown_QueryInterface
(
&
provider
->
MSDASQL_iface
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
dbinit_AddRef
(
IDBInitialize
*
iface
)
{
struct
msdasql
*
provider
=
impl_from_IDBInitialize
(
iface
);
return
IUnknown_AddRef
(
&
provider
->
MSDASQL_iface
);
}
static
ULONG
WINAPI
dbinit_Release
(
IDBInitialize
*
iface
)
{
struct
msdasql
*
provider
=
impl_from_IDBInitialize
(
iface
);
return
IUnknown_Release
(
&
provider
->
MSDASQL_iface
);
}
static
HRESULT
WINAPI
dbinit_Initialize
(
IDBInitialize
*
iface
)
{
struct
msdasql
*
provider
=
impl_from_IDBInitialize
(
iface
);
FIXME
(
"%p stub
\n
"
,
provider
);
return
S_OK
;
}
static
HRESULT
WINAPI
dbinit_Uninitialize
(
IDBInitialize
*
iface
)
{
struct
msdasql
*
provider
=
impl_from_IDBInitialize
(
iface
);
FIXME
(
"%p stub
\n
"
,
provider
);
return
S_OK
;
}
static
const
struct
IDBInitializeVtbl
dbinit_vtbl
=
{
dbinit_QueryInterface
,
dbinit_AddRef
,
dbinit_Release
,
dbinit_Initialize
,
dbinit_Uninitialize
};
static
HRESULT
create_msdasql_provider
(
REFIID
riid
,
void
**
ppv
)
{
struct
msdasql
*
provider
;
...
...
@@ -250,6 +309,7 @@ static HRESULT create_msdasql_provider(REFIID riid, void **ppv)
provider
->
MSDASQL_iface
.
lpVtbl
=
&
msdsql_vtbl
;
provider
->
IDBProperties_iface
.
lpVtbl
=
&
dbprops_vtbl
;
provider
->
IDBInitialize_iface
.
lpVtbl
=
&
dbinit_vtbl
;
provider
->
ref
=
1
;
hr
=
IUnknown_QueryInterface
(
&
provider
->
MSDASQL_iface
,
riid
,
ppv
);
...
...
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