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
0cf1bdf9
Commit
0cf1bdf9
authored
Feb 03, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms: Use the return values of GetStandardColorSpaceProfileW and GetColorDirectoryW (clang).
parent
06cd0e2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
profile.c
dlls/mscms/profile.c
+2
-4
No files found.
dlls/mscms/profile.c
View file @
0cf1bdf9
...
@@ -253,13 +253,12 @@ BOOL WINAPI GetColorDirectoryA( PCSTR machine, PSTR buffer, PDWORD size )
...
@@ -253,13 +253,12 @@ BOOL WINAPI GetColorDirectoryA( PCSTR machine, PSTR buffer, PDWORD size )
{
{
ret
=
GetColorDirectoryW
(
NULL
,
NULL
,
&
sizeW
);
ret
=
GetColorDirectoryW
(
NULL
,
NULL
,
&
sizeW
);
*
size
=
sizeW
/
sizeof
(
WCHAR
);
*
size
=
sizeW
/
sizeof
(
WCHAR
);
return
FALSE
;
return
ret
;
}
}
sizeW
=
*
size
*
sizeof
(
WCHAR
);
sizeW
=
*
size
*
sizeof
(
WCHAR
);
bufferW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeW
);
bufferW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeW
);
if
(
bufferW
)
if
(
bufferW
)
{
{
if
((
ret
=
GetColorDirectoryW
(
NULL
,
bufferW
,
&
sizeW
)))
if
((
ret
=
GetColorDirectoryW
(
NULL
,
bufferW
,
&
sizeW
)))
...
@@ -594,11 +593,10 @@ BOOL WINAPI GetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile
...
@@ -594,11 +593,10 @@ BOOL WINAPI GetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile
{
{
ret
=
GetStandardColorSpaceProfileW
(
NULL
,
id
,
NULL
,
&
sizeW
);
ret
=
GetStandardColorSpaceProfileW
(
NULL
,
id
,
NULL
,
&
sizeW
);
*
size
=
sizeW
/
sizeof
(
WCHAR
);
*
size
=
sizeW
/
sizeof
(
WCHAR
);
return
FALSE
;
return
ret
;
}
}
profileW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeW
);
profileW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeW
);
if
(
profileW
)
if
(
profileW
)
{
{
if
((
ret
=
GetStandardColorSpaceProfileW
(
NULL
,
id
,
profileW
,
&
sizeW
)))
if
((
ret
=
GetStandardColorSpaceProfileW
(
NULL
,
id
,
profileW
,
&
sizeW
)))
...
...
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