Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
fee339f7
Commit
fee339f7
authored
Dec 05, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Fix a few test failures on Win9x and WinMe.
parent
8fc42993
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
bitmap.c
dlls/gdi32/tests/bitmap.c
+11
-3
No files found.
dlls/gdi32/tests/bitmap.c
View file @
fee339f7
...
...
@@ -1956,11 +1956,17 @@ static void test_CreateBitmap(void)
bmp
.
bmPlanes
=
1
;
bmp
.
bmBitsPixel
=
i
;
bmp
.
bmBits
=
NULL
;
SetLastError
(
0xdeadbeef
);
bm
=
CreateBitmapIndirect
(
&
bmp
);
if
(
i
>
32
)
{
DWORD
error
=
GetLastError
();
ok
(
bm
==
0
,
"CreateBitmapIndirect for %d bpp succeeded
\n
"
,
i
);
ok
(
error
==
ERROR_INVALID_PARAMETER
,
"Got error %d, expected ERROR_INVALID_PARAMETER
\n
"
,
error
);
ok
(
bm
==
0
||
broken
(
bm
!=
0
),
/* Win9x and WinMe */
"CreateBitmapIndirect for %d bpp succeeded
\n
"
,
i
);
ok
(
error
==
ERROR_INVALID_PARAMETER
||
broken
(
error
==
0xdeadbeef
),
/* Win9x and WinME */
"Got error %d, expected ERROR_INVALID_PARAMETER
\n
"
,
error
);
DeleteObject
(
bm
);
continue
;
}
ok
(
bm
!=
0
,
"CreateBitmapIndirect error %u
\n
"
,
GetLastError
());
...
...
@@ -1978,7 +1984,9 @@ static void test_CreateBitmap(void)
}
else
if
(
i
<=
32
)
{
expect
=
32
;
}
ok
(
bmp
.
bmBitsPixel
==
expect
,
"CreateBitmapIndirect for a %d bpp bitmap created a %d bpp bitmap, expected %d
\n
"
,
ok
(
bmp
.
bmBitsPixel
==
expect
||
broken
(
bmp
.
bmBitsPixel
==
i
),
/* Win9x and WinMe */
"CreateBitmapIndirect for a %d bpp bitmap created a %d bpp bitmap, expected %d
\n
"
,
i
,
bmp
.
bmBitsPixel
,
expect
);
DeleteObject
(
bm
);
}
...
...
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