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
2c2d0a41
Commit
2c2d0a41
authored
Sep 09, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms/tests: Fix some test failures on Win98 and WinME.
parent
3a656fde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
profile.c
dlls/mscms/tests/profile.c
+7
-3
No files found.
dlls/mscms/tests/profile.c
View file @
2c2d0a41
...
...
@@ -539,7 +539,8 @@ static void test_GetStandardColorSpaceProfileW()
DWORD
size
;
WCHAR
oldprofile
[
MAX_PATH
];
WCHAR
newprofile
[
MAX_PATH
];
const
WCHAR
emptyW
[]
=
{
0
};
CHAR
newprofileA
[
MAX_PATH
];
const
CHAR
empty
[]
=
""
;
DWORD
zero
=
0
;
DWORD
sizeP
=
sizeof
(
newprofile
);
...
...
@@ -557,7 +558,9 @@ static void test_GetStandardColorSpaceProfileW()
SetLastError
(
0xfaceabee
);
/* 2nd param, */
ret
=
pGetStandardColorSpaceProfileW
(
NULL
,
0
,
newprofile
,
&
sizeP
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"GetStandardColorSpaceProfileW() returns %d (GLE=%d)
\n
"
,
ret
,
GetLastError
()
);
ok
(
(
!
ret
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
)
||
broken
(
ret
),
/* Win98 and WinME */
"GetStandardColorSpaceProfileW() returns %d (GLE=%d)
\n
"
,
ret
,
GetLastError
()
);
SetLastError
(
0xfaceabee
);
/* 3rd param, */
ret
=
pGetStandardColorSpaceProfileW
(
NULL
,
LCS_sRGB
,
NULL
,
&
sizeP
);
...
...
@@ -590,8 +593,9 @@ static void test_GetStandardColorSpaceProfileW()
SetLastError
(
0xfaceabee
);
/* maybe 2nd param. */
ret
=
pGetStandardColorSpaceProfileW
(
NULL
,
0
,
newprofile
,
&
sizeP
);
WideCharToMultiByte
(
CP_ACP
,
0
,
newprofile
,
-
1
,
newprofileA
,
sizeof
(
newprofileA
),
NULL
,
NULL
);
if
(
!
ret
)
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"GetStandardColorSpaceProfileW() returns %d (GLE=%d)
\n
"
,
ret
,
GetLastError
()
);
else
ok
(
!
lstrcmpi
W
(
newprofile
,
emptyW
)
&&
GetLastError
()
==
0xfaceabee
,
else
ok
(
!
lstrcmpi
A
(
newprofileA
,
empty
)
&&
GetLastError
()
==
0xfaceabee
,
"GetStandardColorSpaceProfileW() returns %d (GLE=%d)
\n
"
,
ret
,
GetLastError
()
);
/* Functional checks */
...
...
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