Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
8af7133d
Commit
8af7133d
authored
Oct 05, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms: Cast-qual warnings fix.
parent
3dbac638
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
profile.c
dlls/mscms/profile.c
+4
-4
No files found.
dlls/mscms/profile.c
View file @
8af7133d
...
...
@@ -615,7 +615,7 @@ BOOL WINAPI EnumColorProfilesA( PCSTR machine, PENUMTYPEA record, PBYTE buffer,
PROFILEHEADER
header
;
WIN32_FIND_DATAA
data
;
ENUMTYPEW
recordW
;
WCHAR
*
fileW
=
NULL
;
WCHAR
*
fileW
=
NULL
,
*
deviceW
=
NULL
;
HANDLE
find
;
TRACE
(
"( %p, %p, %p, %p, %p )
\n
"
,
machine
,
record
,
buffer
,
size
,
number
);
...
...
@@ -643,8 +643,8 @@ BOOL WINAPI EnumColorProfilesA( PCSTR machine, PENUMTYPEA record, PBYTE buffer,
memcpy
(
&
recordW
,
record
,
sizeof
(
ENUMTYPEA
)
);
if
(
record
->
pDeviceName
)
{
recordW
.
pDeviceName
=
MSCMS_strdupW
(
record
->
pDeviceName
);
if
(
!
recordW
.
pDeviceName
)
goto
exit
;
deviceW
=
MSCMS_strdupW
(
record
->
pDeviceName
);
if
(
!
(
recordW
.
pDeviceName
=
deviceW
)
)
goto
exit
;
}
fileW
=
MSCMS_strdupW
(
data
.
cFileName
);
...
...
@@ -730,7 +730,7 @@ exit:
for
(
i
=
0
;
i
<
count
;
i
++
)
HeapFree
(
GetProcessHeap
(),
0
,
profiles
[
i
]
);
HeapFree
(
GetProcessHeap
(),
0
,
profiles
);
HeapFree
(
GetProcessHeap
(),
0
,
(
WCHAR
*
)
recordW
.
pDeviceName
);
HeapFree
(
GetProcessHeap
(),
0
,
deviceW
);
HeapFree
(
GetProcessHeap
(),
0
,
fileW
);
FindClose
(
find
);
...
...
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