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
7d686c22
Commit
7d686c22
authored
Nov 08, 2021
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Nov 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdasql: Trace session interfaces.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0977ce7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
session.c
dlls/msdasql/session.c
+10
-0
provider.c
dlls/msdasql/tests/provider.c
+13
-0
No files found.
dlls/msdasql/session.c
View file @
7d686c22
...
...
@@ -102,6 +102,16 @@ static HRESULT WINAPI session_QueryInterface(IUnknown *iface, REFIID riid, void
TRACE
(
"(%p)->(IDBCreateCommand_iface %p)
\n
"
,
iface
,
ppv
);
*
ppv
=
&
session
->
IDBCreateCommand_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IBindResource
,
riid
))
{
TRACE
(
"(%p)->(IID_IBindResource not support)
\n
"
,
iface
);
return
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
&
IID_ICreateRow
,
riid
))
{
TRACE
(
"(%p)->(IID_ICreateRow not support)
\n
"
,
iface
);
return
E_NOINTERFACE
;
}
if
(
*
ppv
)
{
...
...
dlls/msdasql/tests/provider.c
View file @
7d686c22
...
...
@@ -367,6 +367,8 @@ static void test_sessions(void)
IDBCreateCommand
*
create_command
=
NULL
;
IGetDataSource
*
datasource
=
NULL
;
ISessionProperties
*
session_props
=
NULL
;
IUnknown
*
unimplemented
=
NULL
;
ITransactionJoin
*
join
=
NULL
;
IUnknown
*
cmd
=
NULL
;
HRESULT
hr
;
BSTR
connect_str
;
...
...
@@ -415,6 +417,17 @@ static void test_sessions(void)
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IGetDataSource_Release
(
datasource
);
hr
=
IUnknown_QueryInterface
(
session
,
&
IID_ITransactionJoin
,
(
void
**
)
&
join
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
ITransactionJoin_Release
(
join
);
hr
=
IUnknown_QueryInterface
(
session
,
&
IID_IBindResource
,
(
void
**
)
&
unimplemented
);
ok
(
hr
==
E_NOINTERFACE
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IUnknown_QueryInterface
(
session
,
&
IID_ICreateRow
,
(
void
**
)
&
unimplemented
);
ok
(
hr
==
E_NOINTERFACE
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IUnknown_QueryInterface
(
session
,
&
IID_ISessionProperties
,
(
void
**
)
&
session_props
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ISessionProperties_Release
(
session_props
);
...
...
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