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
c5bd5236
Commit
c5bd5236
authored
Mar 25, 2014
by
Jactry Zeng
Committed by
Alexandre Julliard
Mar 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Return E_INVALIDARG for empty ppSel in ITextDocument::GetSelection.
parent
946378a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
richole.c
dlls/riched20/richole.c
+3
-0
richole.c
dlls/riched20/tests/richole.c
+3
-0
No files found.
dlls/riched20/richole.c
View file @
c5bd5236
...
...
@@ -515,6 +515,9 @@ ITextDocument_fnGetSelection(ITextDocument* me, ITextSelection** ppSel)
{
IRichEditOleImpl
*
This
=
impl_from_ITextDocument
(
me
);
TRACE
(
"(%p)
\n
"
,
me
);
if
(
!
ppSel
)
return
E_INVALIDARG
;
*
ppSel
=
&
This
->
txtSel
->
ITextSelection_iface
;
ITextSelection_AddRef
(
*
ppSel
);
return
S_OK
;
...
...
dlls/riched20/tests/richole.c
View file @
c5bd5236
...
...
@@ -117,6 +117,9 @@ static void test_Interfaces(void)
ok
(
hres
==
S_OK
,
"IRichEditOle_QueryInterface
\n
"
);
ok
(
txtDoc
!=
NULL
,
"IRichEditOle_QueryInterface
\n
"
);
hres
=
ITextDocument_GetSelection
(
txtDoc
,
NULL
);
ok
(
hres
==
E_INVALIDARG
,
"ITextDocument_GetSelection: 0x%x
\n
"
,
hres
);
ITextDocument_GetSelection
(
txtDoc
,
&
txtSel
);
punk
=
NULL
;
...
...
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