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
cce5ac1d
Commit
cce5ac1d
authored
Jan 03, 2018
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jan 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Silence interfaces for IDataSourceLocator QI.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4ee4d4e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
dslocator.c
dlls/oledb32/dslocator.c
+15
-0
database.c
dlls/oledb32/tests/database.c
+12
-0
No files found.
dlls/oledb32/dslocator.c
View file @
cce5ac1d
...
@@ -78,6 +78,21 @@ static HRESULT WINAPI dslocator_QueryInterface(IDataSourceLocator *iface, REFIID
...
@@ -78,6 +78,21 @@ static HRESULT WINAPI dslocator_QueryInterface(IDataSourceLocator *iface, REFIID
TRACE
(
"IID_IRunnableObject returning NULL
\n
"
);
TRACE
(
"IID_IRunnableObject returning NULL
\n
"
);
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IProvideClassInfo
))
{
TRACE
(
"IID_IProvideClassInfo returning NULL
\n
"
);
return
E_NOINTERFACE
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IMarshal
))
{
TRACE
(
"IID_IMarshal returning NULL
\n
"
);
return
E_NOINTERFACE
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IRpcOptions
))
{
TRACE
(
"IID_IRpcOptions returning NULL
\n
"
);
return
E_NOINTERFACE
;
}
if
(
*
ppvoid
)
if
(
*
ppvoid
)
{
{
...
...
dlls/oledb32/tests/database.c
View file @
cce5ac1d
...
@@ -886,6 +886,9 @@ static void test_dslocator(void)
...
@@ -886,6 +886,9 @@ static void test_dslocator(void)
{
{
IDataInitialize
*
datainit
,
*
datainit2
;
IDataInitialize
*
datainit
,
*
datainit2
;
IRunnableObject
*
runable
;
IRunnableObject
*
runable
;
IProvideClassInfo
*
info
;
IMarshal
*
marshal
;
IRpcOptions
*
opts
;
COMPATIBLE_LONG
hwnd
=
0
;
COMPATIBLE_LONG
hwnd
=
0
;
if
(
0
)
/* Crashes under Window 7 */
if
(
0
)
/* Crashes under Window 7 */
...
@@ -928,6 +931,15 @@ static void test_dslocator(void)
...
@@ -928,6 +931,15 @@ static void test_dslocator(void)
hr
=
IDataSourceLocator_QueryInterface
(
dslocator
,
&
IID_IRunnableObject
,
(
void
**
)
&
runable
);
hr
=
IDataSourceLocator_QueryInterface
(
dslocator
,
&
IID_IRunnableObject
,
(
void
**
)
&
runable
);
ok
(
hr
==
E_NOINTERFACE
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
E_NOINTERFACE
,
"got %08x
\n
"
,
hr
);
hr
=
IDataSourceLocator_QueryInterface
(
dslocator
,
&
IID_IMarshal
,
(
void
**
)
&
marshal
);
ok
(
hr
==
E_NOINTERFACE
,
"got %08x
\n
"
,
hr
);
hr
=
IDataSourceLocator_QueryInterface
(
dslocator
,
&
IID_IProvideClassInfo
,
(
void
**
)
&
info
);
ok
(
hr
==
E_NOINTERFACE
,
"got %08x
\n
"
,
hr
);
hr
=
IDataSourceLocator_QueryInterface
(
dslocator
,
&
IID_IRpcOptions
,
(
void
**
)
&
opts
);
ok
(
hr
==
E_NOINTERFACE
,
"got %08x
\n
"
,
hr
);
IDataInitialize_Release
(
datainit2
);
IDataInitialize_Release
(
datainit2
);
IDataInitialize_Release
(
datainit
);
IDataInitialize_Release
(
datainit
);
...
...
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