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
f0ccd389
Commit
f0ccd389
authored
Dec 06, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Convert dump_FORMATETC() into debugstr_formatetc(), a proper debug trace function.
parent
baf85ad9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
datacache.c
dlls/ole32/datacache.c
+8
-8
No files found.
dlls/ole32/datacache.c
View file @
f0ccd389
...
...
@@ -189,11 +189,11 @@ static inline DataCache *impl_from_IOleCacheControl( IOleCacheControl *iface )
return
(
DataCache
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
DataCache
,
lpvtblIOleCacheControl
));
}
static
void
dump_FORMATETC
(
const
FORMATETC
*
formatetc
)
static
const
char
*
debugstr_formatetc
(
const
FORMATETC
*
formatetc
)
{
TRACE
(
"{ cfFormat = 0x%x, ptd = %p, dwAspect = %d, lindex = %d, tymed = %d }"
,
formatetc
->
cfFormat
,
formatetc
->
ptd
,
formatetc
->
dwAspect
,
formatetc
->
lindex
,
formatetc
->
tymed
);
return
wine_dbg_sprintf
(
"{ cfFormat = 0x%x, ptd = %p, dwAspect = %d, lindex = %d, tymed = %d }"
,
formatetc
->
cfFormat
,
formatetc
->
ptd
,
formatetc
->
dwAspect
,
formatetc
->
lindex
,
formatetc
->
tymed
);
}
/*
...
...
@@ -580,7 +580,7 @@ static HRESULT DataCacheEntry_Save(DataCacheEntry *This, IStorage *storage,
IStream
*
pres_stream
;
void
*
data
=
NULL
;
TRACE
(
"stream_number = %d, fmtetc =
"
,
This
->
stream_number
);
dump_FORMATETC
(
&
This
->
fmtetc
);
TRACE
(
"
\n
"
);
TRACE
(
"stream_number = %d, fmtetc =
%s
\n
"
,
This
->
stream_number
,
debugstr_formatetc
(
&
This
->
fmtetc
)
);
hr
=
DataCacheEntry_CreateStream
(
This
,
storage
,
&
pres_stream
);
if
(
FAILED
(
hr
))
...
...
@@ -1268,7 +1268,7 @@ static HRESULT WINAPI DataCache_Load(
fmtetc
.
lindex
=
header
.
lindex
;
fmtetc
.
tymed
=
header
.
tymed
;
TRACE
(
"loading entry with formatetc:
"
);
dump_FORMATETC
(
&
fmtetc
);
TRACE
(
"
\n
"
);
TRACE
(
"loading entry with formatetc:
%s
\n
"
,
debugstr_formatetc
(
&
fmtetc
)
);
cache_entry
=
DataCache_GetEntryForFormatEtc
(
This
,
&
fmtetc
);
if
(
!
cache_entry
)
...
...
@@ -1876,7 +1876,7 @@ static HRESULT WINAPI DataCache_Cache(
HRESULT
hr
;
TRACE
(
"(%p, 0x%x, %p)
\n
"
,
pformatetc
,
advf
,
pdwConnection
);
TRACE
(
"pformatetc =
"
);
dump_FORMATETC
(
pformatetc
);
TRACE
(
"
\n
"
);
TRACE
(
"pformatetc =
%s
\n
"
,
debugstr_formatetc
(
pformatetc
)
);
*
pdwConnection
=
0
;
...
...
@@ -1944,7 +1944,7 @@ static HRESULT WINAPI DataCache_IOleCache2_SetData(
HRESULT
hr
;
TRACE
(
"(%p, %p, %s)
\n
"
,
pformatetc
,
pmedium
,
fRelease
?
"TRUE"
:
"FALSE"
);
TRACE
(
"formatetc =
"
);
dump_FORMATETC
(
pformatetc
);
TRACE
(
"
\n
"
);
TRACE
(
"formatetc =
%s
\n
"
,
debugstr_formatetc
(
pformatetc
)
);
cache_entry
=
DataCache_GetEntryForFormatEtc
(
This
,
pformatetc
);
if
(
cache_entry
)
...
...
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