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
904b2749
Commit
904b2749
authored
Jul 08, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Jul 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Don't continue with the tests if GetWinMetaFileBits fails.
parent
f88d9ab1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
metafile.c
dlls/gdi32/tests/metafile.c
+3
-1
No files found.
dlls/gdi32/tests/metafile.c
View file @
904b2749
...
...
@@ -2331,7 +2331,7 @@ static void getwinmetafilebits(UINT mode, int scale, RECT *rc)
UINT
size
,
emf_size
,
i
;
WORD
check
=
0
;
DWORD
rec_num
=
0
;
METAHEADER
*
mh
;
METAHEADER
*
mh
=
NULL
;
METARECORD
*
rec
;
INT
horz_res
,
vert_res
,
horz_size
,
vert_size
;
...
...
@@ -2363,6 +2363,7 @@ static void getwinmetafilebits(UINT mode, int scale, RECT *rc)
size
=
GetWinMetaFileBits
(
emf
,
0
,
NULL
,
mode
,
display_dc
);
ok
(
size
,
"GetWinMetaFileBits returns 0
\n
"
);
if
(
!
size
)
goto
end
;
mh
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
GetWinMetaFileBits
(
emf
,
size
,
(
BYTE
*
)
mh
,
mode
,
display_dc
);
...
...
@@ -2464,6 +2465,7 @@ static void getwinmetafilebits(UINT mode, int scale, RECT *rc)
rec
=
(
METARECORD
*
)((
WORD
*
)
rec
+
rec
->
rdSize
);
}
end:
HeapFree
(
GetProcessHeap
(),
0
,
mh
);
HeapFree
(
GetProcessHeap
(),
0
,
enh_header
);
DeleteEnhMetaFile
(
emf
);
...
...
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