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
355f6b24
Commit
355f6b24
authored
Jul 01, 2018
by
André Hentschel
Committed by
Alexandre Julliard
Jul 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Don't crash if EnumFormatEtc failed.
Signed-off-by:
André Hentschel
<
nerv@dawncrow.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
53cc1da1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
clipboard.c
dlls/ole32/tests/clipboard.c
+10
-0
No files found.
dlls/ole32/tests/clipboard.c
View file @
355f6b24
...
@@ -589,6 +589,11 @@ static void test_enum_fmtetc(IDataObject *src)
...
@@ -589,6 +589,11 @@ static void test_enum_fmtetc(IDataObject *src)
hr
=
IDataObject_EnumFormatEtc
(
data
,
DATADIR_GET
,
&
enum_fmt
);
hr
=
IDataObject_EnumFormatEtc
(
data
,
DATADIR_GET
,
&
enum_fmt
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
DataObjectImpl_EnumFormatEtc_calls
==
0
,
"EnumFormatEtc was called
\n
"
);
ok
(
DataObjectImpl_EnumFormatEtc_calls
==
0
,
"EnumFormatEtc was called
\n
"
);
if
(
FAILED
(
hr
))
{
skip
(
"EnumFormatEtc failed, skipping tests.
\n
"
);
return
;
}
if
(
src
)
IDataObject_EnumFormatEtc
(
src
,
DATADIR_GET
,
&
src_enum
);
if
(
src
)
IDataObject_EnumFormatEtc
(
src
,
DATADIR_GET
,
&
src_enum
);
...
@@ -1422,6 +1427,11 @@ static void test_nonole_clipboard(void)
...
@@ -1422,6 +1427,11 @@ static void test_nonole_clipboard(void)
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IDataObject_EnumFormatEtc
(
get
,
DATADIR_GET
,
&
enum_fmt
);
hr
=
IDataObject_EnumFormatEtc
(
get
,
DATADIR_GET
,
&
enum_fmt
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
{
skip
(
"EnumFormatEtc failed, skipping tests.
\n
"
);
return
;
}
hr
=
IEnumFORMATETC_Next
(
enum_fmt
,
1
,
&
fmt
,
NULL
);
hr
=
IEnumFORMATETC_Next
(
enum_fmt
,
1
,
&
fmt
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
...
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