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
dbee72d5
Commit
dbee72d5
authored
Dec 04, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Don't cast pointers to integers.
parent
acdcb19c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
image.c
dlls/gdiplus/tests/image.c
+6
-9
No files found.
dlls/gdiplus/tests/image.c
View file @
dbee72d5
...
...
@@ -42,20 +42,17 @@ static void test_Scan0(void)
bm
=
(
GpBitmap
*
)
0xdeadbeef
;
stat
=
GdipCreateBitmapFromScan0
(
10
,
-
10
,
10
,
PixelFormat24bppRGB
,
NULL
,
&
bm
);
expect
(
InvalidParameter
,
stat
);
expect
(
NULL
,
bm
);
ok
(
!
bm
,
"expected null bitmap
\n
"
);
bm
=
(
GpBitmap
*
)
0xdeadbeef
;
stat
=
GdipCreateBitmapFromScan0
(
-
10
,
10
,
10
,
PixelFormat24bppRGB
,
NULL
,
&
bm
);
expect
(
InvalidParameter
,
stat
);
expect
(
NULL
,
bm
);
ok
(
!
bm
,
"expected null bitmap
\n
"
);
bm
=
(
GpBitmap
*
)
0xdeadbeef
;
stat
=
GdipCreateBitmapFromScan0
(
10
,
0
,
10
,
PixelFormat24bppRGB
,
NULL
,
&
bm
);
expect
(
InvalidParameter
,
stat
);
expect
(
NULL
,
bm
);
ok
(
!
bm
,
"expected null bitmap
\n
"
);
bm
=
NULL
;
stat
=
GdipCreateBitmapFromScan0
(
10
,
10
,
12
,
PixelFormat24bppRGB
,
buff
,
&
bm
);
...
...
@@ -67,12 +64,12 @@ static void test_Scan0(void)
bm
=
(
GpBitmap
*
)
0xdeadbeef
;
stat
=
GdipCreateBitmapFromScan0
(
10
,
10
,
10
,
PixelFormat24bppRGB
,
buff
,
&
bm
);
expect
(
InvalidParameter
,
stat
);
expect
(
NULL
,
bm
);
ok
(
!
bm
,
"expected null bitmap
\n
"
);
bm
=
(
GpBitmap
*
)
0xdeadbeef
;
stat
=
GdipCreateBitmapFromScan0
(
10
,
10
,
0
,
PixelFormat24bppRGB
,
buff
,
&
bm
);
expect
(
InvalidParameter
,
stat
);
expect
(
0xdeadbeef
,
bm
);
ok
(
bm
==
(
GpBitmap
*
)
0xdeadbeef
,
"expected deadbeef bitmap
\n
"
);
bm
=
NULL
;
stat
=
GdipCreateBitmapFromScan0
(
10
,
10
,
-
8
,
PixelFormat24bppRGB
,
buff
,
&
bm
);
...
...
@@ -86,7 +83,7 @@ static void test_Scan0(void)
bm
=
(
GpBitmap
*
)
0xdeadbeef
;
stat
=
GdipCreateBitmapFromScan0
(
10
,
10
,
-
10
,
PixelFormat24bppRGB
,
buff
,
&
bm
);
expect
(
InvalidParameter
,
stat
);
expect
(
NULL
,
bm
);
ok
(
!
bm
,
"expected null bitmap
\n
"
);
}
static
void
test_GetImageDimension
(
void
)
...
...
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