Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0fc0e34f
Commit
0fc0e34f
authored
Jan 05, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Test more return values.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
498009c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
olepicture.c
dlls/oleaut32/tests/olepicture.c
+10
-6
No files found.
dlls/oleaut32/tests/olepicture.c
View file @
0fc0e34f
...
...
@@ -722,7 +722,8 @@ static void test_Render(void)
HDC
hdc
=
create_render_dc
();
/* test IPicture::Render return code on uninitialized picture */
OleCreatePictureIndirect
(
NULL
,
&
IID_IPicture
,
TRUE
,
(
VOID
**
)
&
pic
);
hres
=
OleCreatePictureIndirect
(
NULL
,
&
IID_IPicture
,
TRUE
,
(
void
**
)
&
pic
);
ok
(
hres
==
S_OK
,
"Failed to create a picture, hr %#x.
\n
"
,
hres
);
hres
=
IPicture_get_Type
(
pic
,
&
type
);
ok
(
hres
==
S_OK
,
"IPicture_get_Type does not return S_OK, but 0x%08x
\n
"
,
hres
);
ok
(
type
==
PICTYPE_UNINITIALIZED
,
"Expected type = PICTYPE_UNINITIALIZED, got = %d
\n
"
,
type
);
...
...
@@ -755,7 +756,8 @@ static void test_Render(void)
return
;
}
OleCreatePictureIndirect
(
&
desc
,
&
IID_IPicture
,
TRUE
,
(
VOID
**
)
&
pic
);
hres
=
OleCreatePictureIndirect
(
&
desc
,
&
IID_IPicture
,
TRUE
,
(
void
**
)
&
pic
);
ok
(
hres
==
S_OK
,
"Failed to create a picture, hr %#x.
\n
"
,
hres
);
/* zero dimensions, PICTYPE_ICON */
hres
=
picture_render
(
pic
,
hdc
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
NULL
);
ole_expect
(
hres
,
CTL_E_INVALIDPROPERTYVALUE
);
...
...
@@ -809,7 +811,8 @@ static void test_get_Attributes(void)
short
type
;
DWORD
attr
;
OleCreatePictureIndirect
(
NULL
,
&
IID_IPicture
,
TRUE
,
(
VOID
**
)
&
pic
);
hres
=
OleCreatePictureIndirect
(
NULL
,
&
IID_IPicture
,
TRUE
,
(
void
**
)
&
pic
);
ok
(
hres
==
S_OK
,
"Failed to create a picture, hr %#x.
\n
"
,
hres
);
hres
=
IPicture_get_Type
(
pic
,
&
type
);
ok
(
hres
==
S_OK
,
"IPicture_get_Type does not return S_OK, but 0x%08x
\n
"
,
hres
);
ok
(
type
==
PICTYPE_UNINITIALIZED
,
"Expected type = PICTYPE_UNINITIALIZED, got = %d
\n
"
,
type
);
...
...
@@ -830,8 +833,8 @@ static void test_get_Handle(void)
IPicture
*
pic
;
HRESULT
hres
;
OleCreatePictureIndirect
(
NULL
,
&
IID_IPicture
,
TRUE
,
(
VOID
**
)
&
pic
);
hres
=
OleCreatePictureIndirect
(
NULL
,
&
IID_IPicture
,
TRUE
,
(
void
**
)
&
pic
);
ok
(
hres
==
S_OK
,
"Failed to create a picture, hr %#x.
\n
"
,
hres
);
hres
=
IPicture_get_Handle
(
pic
,
NULL
);
ole_expect
(
hres
,
E_POINTER
);
...
...
@@ -843,7 +846,8 @@ static void test_get_Type(void)
IPicture
*
pic
;
HRESULT
hres
;
OleCreatePictureIndirect
(
NULL
,
&
IID_IPicture
,
TRUE
,
(
VOID
**
)
&
pic
);
hres
=
OleCreatePictureIndirect
(
NULL
,
&
IID_IPicture
,
TRUE
,
(
void
**
)
&
pic
);
ok
(
hres
==
S_OK
,
"Failed to create a picture, hr %#x.
\n
"
,
hres
);
hres
=
IPicture_get_Type
(
pic
,
NULL
);
ole_expect
(
hres
,
E_POINTER
);
...
...
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