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
4d649c62
Commit
4d649c62
authored
Oct 15, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Dump metafiles in EMF spool files.
parent
d745c8d4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
emf.c
tools/winedump/emf.c
+1
-1
emfspool.c
tools/winedump/emfspool.c
+18
-1
winedump.h
tools/winedump/winedump.h
+1
-0
No files found.
tools/winedump/emf.c
View file @
4d649c62
...
...
@@ -77,7 +77,7 @@ static unsigned int read_int(const unsigned char *buffer)
#define EMRCASE(x) case x: printf("%-20s %08x\n", #x, length); break
#define EMRPLUSCASE(x) case x: printf(" %-20s %04x %08x %08x\n", #x, (UINT)header->Flags, (UINT)header->Size, (UINT)header->DataSize); break
static
unsigned
long
dump_emfrecord
(
unsigned
long
offset
)
unsigned
long
dump_emfrecord
(
unsigned
long
offset
)
{
const
unsigned
char
*
ptr
;
unsigned
int
type
,
length
,
i
;
...
...
tools/winedump/emfspool.c
View file @
4d649c62
...
...
@@ -120,7 +120,24 @@ static unsigned long dump_emfspool_record(unsigned long off)
break
;
}
dump_data
((
const
unsigned
char
*
)(
hdr
+
1
),
hdr
->
cjSize
,
""
);
switch
(
hdr
->
ulID
)
{
case
EMRI_METAFILE
:
case
EMRI_FORM_METAFILE
:
case
EMRI_BW_METAFILE
:
case
EMRI_BW_FORM_METAFILE
:
case
EMRI_METAFILE_DATA
:
{
unsigned
long
emf_off
=
off
+
sizeof
(
*
hdr
);
while
((
emf_off
=
dump_emfrecord
(
emf_off
))
&&
emf_off
<
off
+
sizeof
(
*
hdr
)
+
hdr
->
cjSize
);
break
;
}
default:
dump_data
((
const
unsigned
char
*
)(
hdr
+
1
),
hdr
->
cjSize
,
""
);
break
;
}
return
off
+
sizeof
(
*
hdr
)
+
hdr
->
cjSize
;
}
...
...
tools/winedump/winedump.h
View file @
4d649c62
...
...
@@ -248,6 +248,7 @@ void dbg_dump( void );
enum
FileSig
get_kind_lnk
(
void
);
void
lnk_dump
(
void
);
enum
FileSig
get_kind_emf
(
void
);
unsigned
long
dump_emfrecord
(
unsigned
long
offset
);
void
emf_dump
(
void
);
enum
FileSig
get_kind_emfspool
(
void
);
void
emfspool_dump
(
void
);
...
...
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