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
76f66cc7
Commit
76f66cc7
authored
Feb 16, 2006
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Feb 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms: Distinguish between registered and unregistered profile IDs.
parent
90938d6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
+28
-4
profile.c
dlls/mscms/tests/profile.c
+28
-4
No files found.
dlls/mscms/tests/profile.c
View file @
76f66cc7
...
...
@@ -497,6 +497,21 @@ static void enum_registered_color_profiles(void)
trace
(
"
\n
"
);
}
static
colorspace_descr
*
query_colorspace
(
DWORD
dwID
)
{
DWORD
count
,
i
;
count
=
sizeof
(
known_colorspaces
)
/
sizeof
(
known_colorspaces
[
0
]);
for
(
i
=
0
;
i
<
count
;
i
++
)
if
(
known_colorspaces
[
i
].
dwID
==
dwID
)
{
if
(
!
known_colorspaces
[
i
].
registered
)
break
;
return
&
known_colorspaces
[
i
];
}
return
NULL
;
}
static
HKEY
reg_open_mscms_key
(
void
)
{
char
win9x
[]
=
"SOFTWARE
\\
Microsoft
\\
Windows"
;
...
...
@@ -580,10 +595,19 @@ static void test_GetStandardColorSpaceProfileA(void)
fail_GSCSP
(
A
,
NULL
,
(
DWORD
)
-
1
,
newprofile
,
&
size
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_FILE_NOT_FOUND
));
todo_wine
fail_GSCSP
(
A
,
NULL
,
SPACE_RGB
,
newprofile
,
NULL
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_INVALID_PARAMETER
));
todo_wine
fail_GSCSP
(
A
,
NULL
,
SPACE_RGB
,
NULL
,
&
size
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_INSUFFICIENT_BUFFER
));
todo_wine
fail_GSCSP
(
A
,
NULL
,
SPACE_RGB
,
newprofile
,
&
size
,
0
,
FALSE
,
(
GLE
==
ERROR_MORE_DATA
||
GLE
==
ERROR_INSUFFICIENT_BUFFER
));
if
(
query_colorspace
(
SPACE_RGB
))
{
todo_wine
fail_GSCSP
(
A
,
NULL
,
SPACE_RGB
,
NULL
,
&
size
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_INSUFFICIENT_BUFFER
));
todo_wine
fail_GSCSP
(
A
,
NULL
,
SPACE_RGB
,
newprofile
,
&
size
,
0
,
FALSE
,
(
GLE
==
ERROR_MORE_DATA
||
GLE
==
ERROR_INSUFFICIENT_BUFFER
));
}
else
{
todo_wine
fail_GSCSP
(
A
,
NULL
,
SPACE_RGB
,
NULL
,
&
size
,
sizeP
,
FALSE
,
(
GLE
==
ERROR_FILE_NOT_FOUND
));
todo_wine
fail_GSCSP
(
A
,
NULL
,
SPACE_RGB
,
newprofile
,
&
size
,
0
,
FALSE
,
(
GLE
==
ERROR_FILE_NOT_FOUND
));
}
/* Several invalid parameter checks */
fail_GSCSP
(
A
,
machine
,
0
,
newprofile
,
&
size
,
0
,
FALSE
,
(
GLE
==
ERROR_INVALID_PARAMETER
||
GLE
==
ERROR_NOT_SUPPORTED
));
...
...
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