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
8349a9f5
Commit
8349a9f5
authored
Feb 29, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms: Create a copy of memory based profiles.
parent
6e7b5347
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
profile.c
dlls/mscms/profile.c
+4
-5
No files found.
dlls/mscms/profile.c
View file @
8349a9f5
...
...
@@ -1371,7 +1371,6 @@ HPROFILE WINAPI OpenColorProfileW( PPROFILE profile, DWORD access, DWORD sharing
cmsHPROFILE
cmsprofile
=
NULL
;
icProfile
*
iccprofile
=
NULL
;
HANDLE
handle
=
INVALID_HANDLE_VALUE
;
DWORD
size
;
TRACE
(
"( %p, 0x%08x, 0x%08x, 0x%08x )
\n
"
,
profile
,
access
,
sharing
,
creation
);
...
...
@@ -1381,14 +1380,14 @@ HPROFILE WINAPI OpenColorProfileW( PPROFILE profile, DWORD access, DWORD sharing
{
/* FIXME: access flags not implemented for memory based profiles */
i
ccprofile
=
profile
->
pProfileData
;
size
=
profile
->
cbDataSize
;
i
f
(
!
(
iccprofile
=
HeapAlloc
(
GetProcessHeap
(),
0
,
profile
->
cbDataSize
)))
return
NULL
;
memcpy
(
iccprofile
,
profile
->
pProfileData
,
profile
->
cbDataSize
)
;
cmsprofile
=
cmsOpenProfileFromMem
(
iccprofile
,
s
ize
);
cmsprofile
=
cmsOpenProfileFromMem
(
iccprofile
,
profile
->
cbDataS
ize
);
}
else
if
(
profile
->
dwType
==
PROFILE_FILENAME
)
{
DWORD
read
,
flags
=
0
;
DWORD
size
,
read
,
flags
=
0
;
TRACE
(
"profile file: %s
\n
"
,
debugstr_w
(
(
WCHAR
*
)
profile
->
pProfileData
)
);
...
...
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