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
6b73bee0
Commit
6b73bee0
authored
Oct 31, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Nov 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Fix crash and failures on Win95.
parent
3237f587
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
icm.c
dlls/gdi32/tests/icm.c
+11
-5
No files found.
dlls/gdi32/tests/icm.c
View file @
6b73bee0
...
...
@@ -189,11 +189,16 @@ static void test_EnumICMProfilesA( HDC dc )
ret
=
EnumICMProfilesA
(
NULL
,
NULL
,
0
);
ok
(
ret
==
-
1
||
broken
(
ret
==
0
)
/* nt4 */
,
"expected -1, got %d
\n
"
,
ret
);
ret
=
EnumICMProfilesA
(
dc
,
NULL
,
0
);
ok
(
ret
==
-
1
||
broken
(
ret
==
0
)
/* nt4 */
,
"expected -1, got %d
\n
"
,
ret
);
ret
=
EnumICMProfilesA
(
dc
,
enum_profiles_callbackA
,
0
);
ok
(
ret
==
-
1
||
broken
(
ret
==
0
)
/* nt4 */
,
"expected -1, got %d
\n
"
,
ret
);
ok
(
ret
==
-
1
||
broken
(
ret
==
0
)
/* nt4 */
||
broken
(
ret
==
1
)
/* win95 */
,
"expected -1, got %d
\n
"
,
ret
);
if
(
ret
!=
1
)
{
/* Crashes on Win95 */
ret
=
EnumICMProfilesA
(
dc
,
NULL
,
0
);
ok
(
ret
==
-
1
||
broken
(
ret
==
0
)
/* nt4 */
,
"expected -1, got %d
\n
"
,
ret
);
}
}
static
CALLBACK
INT
enum_profiles_callbackW
(
LPWSTR
filename
,
LPARAM
lparam
)
...
...
@@ -251,7 +256,8 @@ static void test_SetICMProfileA( HDC dc )
ret
=
SetICMProfileA
(
dc
,
NULL
);
error
=
GetLastError
();
ok
(
!
ret
,
"SetICMProfileA succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER, got %u
\n
"
,
error
);
ok
(
error
==
ERROR_INVALID_PARAMETER
||
broken
(
error
==
0xdeadbeef
)
/* win95 */
,
"expected ERROR_INVALID_PARAMETER, got %u
\n
"
,
error
);
ret
=
SetICMProfileA
(
dc
,
profile
);
ok
(
ret
,
"SetICMProfileA failed %u
\n
"
,
GetLastError
());
...
...
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