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
17ec5aba
Commit
17ec5aba
authored
Oct 30, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Cast-qual warnings fix.
parent
58df7b66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
metafile.c
dlls/gdi32/metafile.c
+9
-8
No files found.
dlls/gdi32/metafile.c
View file @
17ec5aba
...
...
@@ -1069,27 +1069,28 @@ break;
*/
HMETAFILE
WINAPI
SetMetaFileBitsEx
(
UINT
size
,
const
BYTE
*
lpData
)
{
METAHEADER
*
mh
=
(
METAHEADER
*
)
lpData
;
const
METAHEADER
*
mh_in
=
(
const
METAHEADER
*
)
lpData
;
METAHEADER
*
mh_out
;
if
(
size
&
1
)
return
0
;
if
(
!
size
||
mh
->
mtType
!=
METAFILE_MEMORY
||
mh
->
mtVersion
!=
MFVERSION
||
mh
->
mtHeaderSize
!=
sizeof
(
METAHEADER
)
/
2
)
if
(
!
size
||
mh
_in
->
mtType
!=
METAFILE_MEMORY
||
mh_in
->
mtVersion
!=
MFVERSION
||
mh
_in
->
mtHeaderSize
!=
sizeof
(
METAHEADER
)
/
2
)
{
SetLastError
(
ERROR_INVALID_DATA
);
return
0
;
}
mh
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
!
mh
)
mh
_out
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
!
mh
_out
)
{
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
return
0
;
}
memcpy
(
mh
,
lpData
,
size
);
mh
->
mtSize
=
size
/
2
;
return
MF_Create_HMETAFILE
(
mh
);
memcpy
(
mh
_out
,
mh_in
,
size
);
mh
_out
->
mtSize
=
size
/
2
;
return
MF_Create_HMETAFILE
(
mh
_out
);
}
/*****************************************************************
...
...
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