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
82977c14
Commit
82977c14
authored
Jan 26, 2005
by
Huw Davies
Committed by
Alexandre Julliard
Jan 26, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GetMetaFile checks both the version and the header size when it tries
to load a metafile. Powerpoint XP depends on this.
parent
e8cafa57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
metafile.c
dlls/gdi/metafile.c
+4
-0
No files found.
dlls/gdi/metafile.c
View file @
82977c14
...
@@ -245,6 +245,10 @@ static METAHEADER *MF_ReadMetaFile(HANDLE hfile)
...
@@ -245,6 +245,10 @@ static METAHEADER *MF_ReadMetaFile(HANDLE hfile)
HeapFree
(
GetProcessHeap
(),
0
,
mh
);
HeapFree
(
GetProcessHeap
(),
0
,
mh
);
return
NULL
;
return
NULL
;
}
}
if
(
mh
->
mtVersion
!=
MFVERSION
||
mh
->
mtHeaderSize
!=
size
/
2
)
{
HeapFree
(
GetProcessHeap
(),
0
,
mh
);
return
NULL
;
}
size
=
mh
->
mtSize
*
2
;
size
=
mh
->
mtSize
*
2
;
mh
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
mh
,
size
);
mh
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
mh
,
size
);
if
(
!
mh
)
return
NULL
;
if
(
!
mh
)
return
NULL
;
...
...
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