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
d6d64196
Commit
d6d64196
authored
Jan 21, 2006
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi: Metafile records must be at least 3 words long.
parent
c0165091
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
metafile.c
dlls/gdi/metafile.c
+4
-5
No files found.
dlls/gdi/metafile.c
View file @
d6d64196
...
...
@@ -419,11 +419,10 @@ BOOL MF_PlayMetaFile( HDC hdc, METAHEADER *mh)
mr
=
(
METARECORD
*
)((
char
*
)
mh
+
offset
);
TRACE
(
"offset=%04x,size=%08lx
\n
"
,
offset
,
mr
->
rdSize
);
if
(
!
mr
->
rdSize
)
{
TRACE
(
"Entry got size 0 at offset %d, total mf length is %ld
\n
"
,
offset
,
mh
->
mtSize
*
2
);
break
;
/* would loop endlessly otherwise */
if
(
mr
->
rdSize
<
3
)
{
/* catch illegal record sizes */
TRACE
(
"Entry got size %ld at offset %d, total mf length is %ld
\n
"
,
mr
->
rdSize
,
offset
,
mh
->
mtSize
*
2
);
break
;
}
offset
+=
mr
->
rdSize
*
2
;
PlayMetaFileRecord
(
hdc
,
ht
,
mr
,
mh
->
mtNoObjects
);
...
...
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