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
7a27f8b6
Commit
7a27f8b6
authored
Jul 18, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Jul 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add tests for passing negative strides to GdipCreateBitmapFromScan0.
parent
4f392cea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
image.c
dlls/gdiplus/tests/image.c
+14
-0
No files found.
dlls/gdiplus/tests/image.c
View file @
7a27f8b6
...
...
@@ -73,6 +73,20 @@ static void test_Scan0(void)
stat
=
GdipCreateBitmapFromScan0
(
10
,
10
,
0
,
PixelFormat24bppRGB
,
buff
,
&
bm
);
expect
(
InvalidParameter
,
stat
);
expect
(
0xdeadbeef
,
bm
);
bm
=
NULL
;
stat
=
GdipCreateBitmapFromScan0
(
10
,
10
,
-
8
,
PixelFormat24bppRGB
,
buff
,
&
bm
);
todo_wine
{
expect
(
Ok
,
stat
);
ok
(
NULL
!=
bm
,
"Expected bitmap to be initialized
\n
"
);
}
if
(
stat
==
Ok
)
GdipDisposeImage
((
GpImage
*
)
bm
);
bm
=
(
GpBitmap
*
)
0xdeadbeef
;
stat
=
GdipCreateBitmapFromScan0
(
10
,
10
,
-
10
,
PixelFormat24bppRGB
,
buff
,
&
bm
);
expect
(
InvalidParameter
,
stat
);
expect
(
NULL
,
bm
);
}
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