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
959814a3
Commit
959814a3
authored
Jul 17, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix QueryInterface for IErrorInfo to return IUnknown pointer.
parent
fa4db6d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
errorinfo.c
dlls/ole32/errorinfo.c
+1
-1
errorinfo.c
dlls/ole32/tests/errorinfo.c
+9
-0
No files found.
dlls/ole32/errorinfo.c
View file @
959814a3
...
...
@@ -160,7 +160,7 @@ static HRESULT WINAPI IErrorInfoImpl_QueryInterface(
*
ppvoid
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IErrorInfo
))
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IErrorInfo
))
{
*
ppvoid
=
&
This
->
IErrorInfo_iface
;
}
...
...
dlls/ole32/tests/errorinfo.c
View file @
959814a3
...
...
@@ -47,10 +47,15 @@ static void test_error_info(void)
static
WCHAR
wszDescription
[]
=
{
'F'
,
'a'
,
'i'
,
'l'
,
'e'
,
'd'
,
' '
,
'S'
,
'p'
,
'r'
,
'o'
,
'c'
,
'k'
,
'e'
,
't'
,
0
};
static
WCHAR
wszHelpFile
[]
=
{
's'
,
'p'
,
'r'
,
'o'
,
'c'
,
'k'
,
'e'
,
't'
,
'.'
,
'h'
,
'l'
,
'p'
,
0
};
static
WCHAR
wszSource
[]
=
{
's'
,
'p'
,
'r'
,
'o'
,
'c'
,
'k'
,
'e'
,
't'
,
0
};
IUnknown
*
unk
;
hr
=
CreateErrorInfo
(
&
pCreateErrorInfo
);
ok_ole_success
(
hr
,
"CreateErrorInfo"
);
hr
=
ICreateErrorInfo_QueryInterface
(
pCreateErrorInfo
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
ok_ole_success
(
hr
,
"QI"
);
IUnknown_Release
(
unk
);
hr
=
ICreateErrorInfo_SetDescription
(
pCreateErrorInfo
,
NULL
);
ok_ole_success
(
hr
,
"ICreateErrorInfo_SetDescription"
);
...
...
@@ -78,6 +83,10 @@ static void test_error_info(void)
hr
=
ICreateErrorInfo_QueryInterface
(
pCreateErrorInfo
,
&
IID_IErrorInfo
,
(
void
**
)
&
pErrorInfo
);
ok_ole_success
(
hr
,
"ICreateErrorInfo_QueryInterface"
);
hr
=
IErrorInfo_QueryInterface
(
pErrorInfo
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
ok_ole_success
(
hr
,
"QI"
);
IUnknown_Release
(
unk
);
ICreateErrorInfo_Release
(
pCreateErrorInfo
);
hr
=
SetErrorInfo
(
0
,
pErrorInfo
);
...
...
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