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
244b6356
Commit
244b6356
authored
Nov 28, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Fix EMR_EXTTEXTOUTW record dumping when ETO_PDY flag is specified.
parent
0d6c905a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
emf.c
tools/winedump/emf.c
+6
-2
No files found.
tools/winedump/emf.c
View file @
244b6356
...
...
@@ -384,6 +384,7 @@ unsigned long dump_emfrecord(const char *pfx, unsigned long offset)
{
const
EMREXTTEXTOUTW
*
etoW
=
PRD
(
offset
,
sizeof
(
*
etoW
));
const
int
*
dx
=
(
const
int
*
)((
const
BYTE
*
)
etoW
+
etoW
->
emrtext
.
offDx
);
int
dx_size
;
printf
(
"%s%-20s %08x
\n
"
,
pfx
,
"EMR_EXTTEXTOUTW"
,
length
);
printf
(
"%sbounds (%s) mode %#x x_scale %f y_scale %f pt (%d,%d) rect (%s) flags %#x, %s
\n
"
,
...
...
@@ -392,10 +393,13 @@ unsigned long dump_emfrecord(const char *pfx, unsigned long offset)
debugstr_rect
(
&
etoW
->
emrtext
.
rcl
),
(
UINT
)
etoW
->
emrtext
.
fOptions
,
debugstr_wn
((
LPCWSTR
)((
const
BYTE
*
)
etoW
+
etoW
->
emrtext
.
offString
),
etoW
->
emrtext
.
nChars
));
printf
(
"%sdx_offset %u {"
,
pfx
,
(
UINT
)
etoW
->
emrtext
.
offDx
);
for
(
i
=
0
;
i
<
etoW
->
emrtext
.
nChars
;
++
i
)
dx_size
=
etoW
->
emrtext
.
nChars
;
if
(
etoW
->
emrtext
.
fOptions
&
ETO_PDY
)
dx_size
*=
2
;
for
(
i
=
0
;
i
<
dx_size
;
++
i
)
{
printf
(
"%d"
,
dx
[
i
]);
if
(
i
!=
etoW
->
emrtext
.
nChars
-
1
)
if
(
i
!=
dx_size
-
1
)
putchar
(
','
);
}
printf
(
"}
\n
"
);
...
...
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