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
8744c10a
Commit
8744c10a
authored
Mar 16, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add support for disk-based metafiles to GetMetaFileBitsEx.
parent
4641ed5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
metafile.c
dlls/gdi32/metafile.c
+11
-1
No files found.
dlls/gdi32/metafile.c
View file @
8744c10a
...
...
@@ -1088,17 +1088,27 @@ UINT WINAPI GetMetaFileBitsEx( HMETAFILE hmf, UINT nSize, LPVOID buf )
{
METAHEADER
*
mh
=
GDI_GetObjPtr
(
hmf
,
OBJ_METAFILE
);
UINT
mfSize
;
BOOL
mf_copy
=
FALSE
;
TRACE
(
"(%p,%d,%p)
\n
"
,
hmf
,
nSize
,
buf
);
if
(
!
mh
)
return
0
;
/* FIXME: error code */
if
(
mh
->
mtType
==
METAFILE_DISK
)
FIXME
(
"Disk-based metafile?
\n
"
);
{
mh
=
MF_LoadDiskBasedMetaFile
(
mh
);
if
(
!
mh
)
{
GDI_ReleaseObj
(
hmf
);
return
0
;
}
mf_copy
=
TRUE
;
}
mfSize
=
mh
->
mtSize
*
2
;
if
(
buf
)
{
if
(
mfSize
>
nSize
)
mfSize
=
nSize
;
memmove
(
buf
,
mh
,
mfSize
);
}
if
(
mf_copy
)
HeapFree
(
GetProcessHeap
(),
0
,
mh
);
GDI_ReleaseObj
(
hmf
);
TRACE
(
"returning size %d
\n
"
,
mfSize
);
return
mfSize
;
...
...
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