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
0e49547c
Commit
0e49547c
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: Add support for EMRI_METAFILE_EXT records.
parent
893ac008
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
emfspool.c
tools/winedump/emfspool.c
+22
-0
No files found.
tools/winedump/emfspool.c
View file @
0e49547c
...
...
@@ -61,6 +61,14 @@ typedef struct
unsigned
int
cjSize
;
}
record_hdr
;
static
inline
void
print_longlong
(
ULONGLONG
value
)
{
if
(
sizeof
(
value
)
>
sizeof
(
unsigned
long
)
&&
value
>>
32
)
printf
(
"0x%lx%08lx"
,
(
unsigned
long
)(
value
>>
32
),
(
unsigned
long
)
value
);
else
printf
(
"0x%lx"
,
(
unsigned
long
)
value
);
}
static
const
WCHAR
*
read_wstr
(
unsigned
long
off
)
{
const
WCHAR
*
beg
,
*
end
;
...
...
@@ -133,6 +141,20 @@ static unsigned long dump_emfspool_record(unsigned long off)
break
;
}
case
EMRI_METAFILE_EXT
:
case
EMRI_BW_METAFILE_EXT
:
{
const
ULONGLONG
*
emf_off
=
PRD
(
off
+
sizeof
(
*
hdr
),
sizeof
(
*
emf_off
));
if
(
!
emf_off
)
fatal
(
"truncated file
\n
"
);
printf
(
" %-20s "
,
"offset"
);
print_longlong
(
*
emf_off
);
printf
(
" (absolute position "
);
print_longlong
(
off
-
*
emf_off
);
printf
(
")
\n
"
);
break
;
}
default:
dump_data
((
const
unsigned
char
*
)(
hdr
+
1
),
hdr
->
cjSize
,
""
);
break
;
...
...
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