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
ee639a55
Commit
ee639a55
authored
Dec 13, 2019
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmloader: Simplify tracing of DMUS_CONTAINED_OBJF_KEEP flag.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1ca7f9a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
28 deletions
+2
-28
debug.c
dlls/dmloader/debug.c
+2
-28
No files found.
dlls/dmloader/debug.c
View file @
ee639a55
...
@@ -43,33 +43,6 @@ const char *resolve_STREAM_SEEK (DWORD flag) {
...
@@ -43,33 +43,6 @@ const char *resolve_STREAM_SEEK (DWORD flag) {
}
}
}
}
/* generic flag-dumping function */
static
const
char
*
debugstr_flags
(
DWORD
flags
,
const
flag_info
*
names
,
size_t
num_names
){
static
char
buffer
[
128
]
=
""
,
*
ptr
=
&
buffer
[
0
];
unsigned
int
i
;
int
size
=
sizeof
(
buffer
);
for
(
i
=
0
;
i
<
num_names
;
i
++
)
{
if
((
flags
&
names
[
i
].
val
))
{
int
cnt
=
snprintf
(
ptr
,
size
,
"%s "
,
names
[
i
].
name
);
if
(
cnt
<
0
||
cnt
>=
size
)
break
;
size
-=
cnt
;
ptr
+=
cnt
;
}
}
ptr
=
&
buffer
[
0
];
return
ptr
;
}
/* dump DMUS_CONTAINED_OBJF flags */
static
const
char
*
debugstr_DMUS_CONTAINED_OBJF_FLAGS
(
DWORD
flagmask
)
{
static
const
flag_info
flags
[]
=
{
FE
(
DMUS_CONTAINED_OBJF_KEEP
)
};
return
debugstr_flags
(
flagmask
,
flags
,
ARRAY_SIZE
(
flags
));
}
const
char
*
debugstr_DMUS_IO_CONTAINER_HEADER
(
LPDMUS_IO_CONTAINER_HEADER
pHeader
)
{
const
char
*
debugstr_DMUS_IO_CONTAINER_HEADER
(
LPDMUS_IO_CONTAINER_HEADER
pHeader
)
{
if
(
pHeader
)
{
if
(
pHeader
)
{
char
buffer
[
1024
],
*
ptr
=
buffer
;
char
buffer
[
1024
],
*
ptr
=
buffer
;
...
@@ -90,7 +63,8 @@ const char *debugstr_DMUS_IO_CONTAINED_OBJECT_HEADER (LPDMUS_IO_CONTAINED_OBJECT
...
@@ -90,7 +63,8 @@ const char *debugstr_DMUS_IO_CONTAINED_OBJECT_HEADER (LPDMUS_IO_CONTAINED_OBJECT
ptr
+=
sprintf
(
ptr
,
"DMUS_IO_CONTAINED_OBJECT_HEADER (%p):"
,
pHeader
);
ptr
+=
sprintf
(
ptr
,
"DMUS_IO_CONTAINED_OBJECT_HEADER (%p):"
,
pHeader
);
ptr
+=
sprintf
(
ptr
,
"
\n
- guidClassID = %s"
,
debugstr_dmguid
(
&
pHeader
->
guidClassID
));
ptr
+=
sprintf
(
ptr
,
"
\n
- guidClassID = %s"
,
debugstr_dmguid
(
&
pHeader
->
guidClassID
));
ptr
+=
sprintf
(
ptr
,
"
\n
- dwFlags = %s"
,
debugstr_DMUS_CONTAINED_OBJF_FLAGS
(
pHeader
->
dwFlags
));
ptr
+=
sprintf
(
ptr
,
"
\n
- dwFlags = %#x%s"
,
pHeader
->
dwFlags
,
pHeader
->
dwFlags
&
DMUS_CONTAINED_OBJF_KEEP
?
" (DMUS_CONTAINED_OBJF_KEEP)"
:
""
);
ptr
+=
sprintf
(
ptr
,
"
\n
- ckid = %s"
,
debugstr_fourcc
(
pHeader
->
ckid
));
ptr
+=
sprintf
(
ptr
,
"
\n
- ckid = %s"
,
debugstr_fourcc
(
pHeader
->
ckid
));
ptr
+=
sprintf
(
ptr
,
"
\n
- fccType = %s"
,
debugstr_fourcc
(
pHeader
->
fccType
));
ptr
+=
sprintf
(
ptr
,
"
\n
- fccType = %s"
,
debugstr_fourcc
(
pHeader
->
fccType
));
...
...
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