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
187b6ed9
Commit
187b6ed9
authored
Oct 12, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmloader: Win64 printf format warning fixes.
parent
99f4a6a9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
48 deletions
+47
-48
Makefile.in
dlls/dmloader/Makefile.in
+0
-1
classfactory.c
dlls/dmloader/classfactory.c
+4
-4
container.c
dlls/dmloader/container.c
+19
-19
debug.c
dlls/dmloader/debug.c
+3
-3
loader.c
dlls/dmloader/loader.c
+3
-3
loaderstream.c
dlls/dmloader/loaderstream.c
+18
-18
No files found.
dlls/dmloader/Makefile.in
View file @
187b6ed9
...
...
@@ -5,7 +5,6 @@ VPATH = @srcdir@
MODULE
=
dmloader.dll
IMPORTS
=
ole32 user32 advapi32 kernel32
EXTRALIBS
=
-ldxguid
-luuid
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
C_SRCS
=
\
classfactory.c
\
...
...
dlls/dmloader/classfactory.c
View file @
187b6ed9
...
...
@@ -44,7 +44,7 @@ static HRESULT WINAPI IDirectMusicLoaderCF_QueryInterface (LPCLASSFACTORY iface,
static
ULONG
WINAPI
IDirectMusicLoaderCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IDirectMusicLoaderCF
*
This
=
(
IDirectMusicLoaderCF
*
)
iface
;
TRACE
(
"(%p): AddRef from %
l
d
\n
"
,
This
,
This
->
dwRef
);
TRACE
(
"(%p): AddRef from %d
\n
"
,
This
,
This
->
dwRef
);
return
InterlockedIncrement
(
&
This
->
dwRef
);
}
...
...
@@ -52,7 +52,7 @@ static ULONG WINAPI IDirectMusicLoaderCF_Release (LPCLASSFACTORY iface) {
IDirectMusicLoaderCF
*
This
=
(
IDirectMusicLoaderCF
*
)
iface
;
DWORD
dwRef
=
InterlockedDecrement
(
&
This
->
dwRef
);
TRACE
(
"(%p): ReleaseRef to %
l
d
\n
"
,
This
,
dwRef
);
TRACE
(
"(%p): ReleaseRef to %d
\n
"
,
This
,
dwRef
);
if
(
dwRef
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
/* decrease number of instances */
...
...
@@ -133,7 +133,7 @@ static HRESULT WINAPI IDirectMusicContainerCF_QueryInterface (LPCLASSFACTORY ifa
static
ULONG
WINAPI
IDirectMusicContainerCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IDirectMusicContainerCF
*
This
=
(
IDirectMusicContainerCF
*
)
iface
;
TRACE
(
"(%p): AddRef from %
l
d
\n
"
,
This
,
This
->
dwRef
);
TRACE
(
"(%p): AddRef from %d
\n
"
,
This
,
This
->
dwRef
);
return
InterlockedIncrement
(
&
This
->
dwRef
);
}
...
...
@@ -141,7 +141,7 @@ static ULONG WINAPI IDirectMusicContainerCF_Release (LPCLASSFACTORY iface) {
IDirectMusicContainerCF
*
This
=
(
IDirectMusicContainerCF
*
)
iface
;
DWORD
dwRef
=
InterlockedDecrement
(
&
This
->
dwRef
);
TRACE
(
"(%p): ReleaseRef to %
l
d
\n
"
,
This
,
dwRef
);
TRACE
(
"(%p): ReleaseRef to %d
\n
"
,
This
,
dwRef
);
if
(
dwRef
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
/* decrease number of instances */
...
...
dlls/dmloader/container.c
View file @
187b6ed9
This diff is collapsed.
Click to expand it.
dlls/dmloader/debug.c
View file @
187b6ed9
...
...
@@ -423,7 +423,7 @@ const char *debugstr_dmreturn (DWORD code) {
}
/* if we didn't find it, return value */
return
wine_dbg_sprintf
(
"0x%08
l
X"
,
code
);
return
wine_dbg_sprintf
(
"0x%08X"
,
code
);
}
...
...
@@ -485,8 +485,8 @@ const char *debugstr_DMUS_OBJECTDESC (LPDMUS_OBJECTDESC pDesc) {
char
buffer
[
1024
]
=
""
,
*
ptr
=
&
buffer
[
0
];
ptr
+=
sprintf
(
ptr
,
"DMUS_OBJECTDESC (%p):"
,
pDesc
);
ptr
+=
sprintf
(
ptr
,
"
\n
- dwSize = 0x%08
l
X"
,
pDesc
->
dwSize
);
ptr
+=
sprintf
(
ptr
,
"
\n
- dwValidData = 0x%08
l
X (%s)"
,
pDesc
->
dwValidData
,
debugstr_DMUS_OBJ_FLAGS
(
pDesc
->
dwValidData
));
ptr
+=
sprintf
(
ptr
,
"
\n
- dwSize = 0x%08X"
,
pDesc
->
dwSize
);
ptr
+=
sprintf
(
ptr
,
"
\n
- dwValidData = 0x%08X (%s)"
,
pDesc
->
dwValidData
,
debugstr_DMUS_OBJ_FLAGS
(
pDesc
->
dwValidData
));
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_CLASS
)
ptr
+=
sprintf
(
ptr
,
"
\n
- guidClass = %s"
,
debugstr_dmguid
(
&
pDesc
->
guidClass
));
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_OBJECT
)
ptr
+=
sprintf
(
ptr
,
"
\n
- guidObject = %s"
,
debugstr_guid
(
&
pDesc
->
guidObject
));
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_DATE
)
ptr
+=
sprintf
(
ptr
,
"
\n
- ftDate = %s"
,
debugstr_filetime
(
&
pDesc
->
ftDate
));
...
...
dlls/dmloader/loader.c
View file @
187b6ed9
...
...
@@ -47,7 +47,7 @@ static HRESULT WINAPI IDirectMusicLoaderImpl_IDirectMusicLoader_QueryInterface (
static
ULONG
WINAPI
IDirectMusicLoaderImpl_IDirectMusicLoader_AddRef
(
LPDIRECTMUSICLOADER8
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicLoaderImpl
,
LoaderVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %
l
d
\n
"
,
This
,
This
->
dwRef
);
TRACE
(
"(%p): AddRef from %d
\n
"
,
This
,
This
->
dwRef
);
return
InterlockedIncrement
(
&
This
->
dwRef
);
}
...
...
@@ -55,7 +55,7 @@ static ULONG WINAPI IDirectMusicLoaderImpl_IDirectMusicLoader_Release (LPDIRECTM
ICOM_THIS_MULTI
(
IDirectMusicLoaderImpl
,
LoaderVtbl
,
iface
);
DWORD
dwRef
=
InterlockedDecrement
(
&
This
->
dwRef
);
TRACE
(
"(%p): ReleaseRef to %
l
d
\n
"
,
This
,
This
->
dwRef
);
TRACE
(
"(%p): ReleaseRef to %d
\n
"
,
This
,
This
->
dwRef
);
if
(
dwRef
==
0
)
{
DMUSIC_DestroyDirectMusicLoaderImpl
(
iface
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -689,7 +689,7 @@ static HRESULT WINAPI IDirectMusicLoaderImpl_IDirectMusicLoader_EnumObject (LPDI
struct
list
*
pEntry
;
LPWINE_LOADER_ENTRY
pObjectEntry
;
ICOM_THIS_MULTI
(
IDirectMusicLoaderImpl
,
LoaderVtbl
,
iface
);
TRACE
(
"(%p, %s, %
l
d, %p)
\n
"
,
This
,
debugstr_dmguid
(
rguidClass
),
dwIndex
,
pDesc
);
TRACE
(
"(%p, %s, %d, %p)
\n
"
,
This
,
debugstr_dmguid
(
rguidClass
),
dwIndex
,
pDesc
);
DM_STRUCT_INIT
(
pDesc
);
...
...
dlls/dmloader/loaderstream.c
View file @
187b6ed9
...
...
@@ -112,7 +112,7 @@ static HRESULT WINAPI IDirectMusicLoaderFileStream_IStream_QueryInterface (LPSTR
static
ULONG
WINAPI
IDirectMusicLoaderFileStream_IStream_AddRef
(
LPSTREAM
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicLoaderFileStream
,
StreamVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %
l
d
\n
"
,
This
,
This
->
dwRef
);
TRACE
(
"(%p): AddRef from %d
\n
"
,
This
,
This
->
dwRef
);
return
InterlockedIncrement
(
&
This
->
dwRef
);
}
...
...
@@ -120,7 +120,7 @@ static ULONG WINAPI IDirectMusicLoaderFileStream_IStream_Release (LPSTREAM iface
ICOM_THIS_MULTI
(
IDirectMusicLoaderFileStream
,
StreamVtbl
,
iface
);
DWORD
dwRef
=
InterlockedDecrement
(
&
This
->
dwRef
);
TRACE
(
"(%p): ReleaseRef to %
l
d
\n
"
,
This
,
dwRef
);
TRACE
(
"(%p): ReleaseRef to %d
\n
"
,
This
,
dwRef
);
if
(
dwRef
==
0
)
{
if
(
This
->
hFile
)
IDirectMusicLoaderFileStream_Detach
(
iface
);
...
...
@@ -134,12 +134,12 @@ static HRESULT WINAPI IDirectMusicLoaderFileStream_IStream_Read (LPSTREAM iface,
ICOM_THIS_MULTI
(
IDirectMusicLoaderFileStream
,
StreamVtbl
,
iface
);
ULONG
cbRead
;
TRACE_
(
dmfileraw
)(
"(%p, %p, 0x%08
l
X, %p)
\n
"
,
This
,
pv
,
cb
,
pcbRead
);
TRACE_
(
dmfileraw
)(
"(%p, %p, 0x%08X, %p)
\n
"
,
This
,
pv
,
cb
,
pcbRead
);
if
(
This
->
hFile
==
INVALID_HANDLE_VALUE
)
return
E_FAIL
;
if
(
pcbRead
==
NULL
)
pcbRead
=
&
cbRead
;
if
(
!
ReadFile
(
This
->
hFile
,
pv
,
cb
,
pcbRead
,
NULL
)
||
*
pcbRead
!=
cb
)
return
E_FAIL
;
TRACE_
(
dmfileraw
)(
": data (size = 0x%08
l
X): '%s'
\n
"
,
*
pcbRead
,
debugstr_an
(
pv
,
*
pcbRead
));
TRACE_
(
dmfileraw
)(
": data (size = 0x%08X): '%s'
\n
"
,
*
pcbRead
,
debugstr_an
(
pv
,
*
pcbRead
));
return
S_OK
;
}
...
...
@@ -196,12 +196,12 @@ static HRESULT WINAPI IDirectMusicLoaderFileStream_IStream_Write (LPSTREAM iface
ICOM_THIS_MULTI
(
IDirectMusicLoaderFileStream
,
StreamVtbl
,
iface
);
ULONG
cbWrite
;
TRACE_
(
dmfileraw
)(
"(%p, %p, 0x%08
l
X, %p)
\n
"
,
This
,
pv
,
cb
,
pcbWritten
);
TRACE_
(
dmfileraw
)(
"(%p, %p, 0x%08X, %p)
\n
"
,
This
,
pv
,
cb
,
pcbWritten
);
if
(
This
->
hFile
==
INVALID_HANDLE_VALUE
)
return
E_FAIL
;
if
(
pcbWritten
==
NULL
)
pcbWritten
=
&
cbWrite
;
if
(
!
WriteFile
(
This
->
hFile
,
pv
,
cb
,
pcbWritten
,
NULL
)
||
*
pcbWritten
!=
cb
)
return
E_FAIL
;
TRACE_
(
dmfileraw
)(
": data (size = 0x%08
l
X): '%s'
\n
"
,
*
pcbWritten
,
debugstr_an
(
pv
,
*
pcbWritten
));
TRACE_
(
dmfileraw
)(
": data (size = 0x%08X): '%s'
\n
"
,
*
pcbWritten
,
debugstr_an
(
pv
,
*
pcbWritten
));
return
S_OK
;
}
...
...
@@ -359,7 +359,7 @@ static HRESULT WINAPI IDirectMusicLoaderResourceStream_IStream_QueryInterface (L
static
ULONG
WINAPI
IDirectMusicLoaderResourceStream_IStream_AddRef
(
LPSTREAM
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicLoaderResourceStream
,
StreamVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %
l
d
\n
"
,
This
,
This
->
dwRef
);
TRACE
(
"(%p): AddRef from %d
\n
"
,
This
,
This
->
dwRef
);
return
InterlockedIncrement
(
&
This
->
dwRef
);
}
...
...
@@ -367,7 +367,7 @@ static ULONG WINAPI IDirectMusicLoaderResourceStream_IStream_Release (LPSTREAM i
ICOM_THIS_MULTI
(
IDirectMusicLoaderResourceStream
,
StreamVtbl
,
iface
);
DWORD
dwRef
=
InterlockedDecrement
(
&
This
->
dwRef
);
TRACE
(
"(%p): ReleaseRef to %
l
d
\n
"
,
This
,
dwRef
);
TRACE
(
"(%p): ReleaseRef to %d
\n
"
,
This
,
dwRef
);
if
(
dwRef
==
0
)
{
IDirectMusicLoaderResourceStream_Detach
(
iface
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -380,7 +380,7 @@ static HRESULT WINAPI IDirectMusicLoaderResourceStream_IStream_Read (LPSTREAM if
LPBYTE
pByte
;
ICOM_THIS_MULTI
(
IDirectMusicLoaderResourceStream
,
StreamVtbl
,
iface
);
TRACE_
(
dmfileraw
)(
"(%p, %p, 0x%08
l
X, %p)
\n
"
,
This
,
pv
,
cb
,
pcbRead
);
TRACE_
(
dmfileraw
)(
"(%p, %p, 0x%08X, %p)
\n
"
,
This
,
pv
,
cb
,
pcbRead
);
if
((
This
->
llPos
+
cb
)
>
This
->
llMemLength
)
{
WARN_
(
dmfileraw
)(
": requested size out of range
\n
"
);
return
E_FAIL
;
...
...
@@ -392,7 +392,7 @@ static HRESULT WINAPI IDirectMusicLoaderResourceStream_IStream_Read (LPSTREAM if
/* FIXME: error checking would be nice */
if
(
pcbRead
)
*
pcbRead
=
cb
;
TRACE_
(
dmfileraw
)(
": data (size = 0x%08
l
X): '%s'
\n
"
,
cb
,
debugstr_an
(
pv
,
cb
));
TRACE_
(
dmfileraw
)(
": data (size = 0x%08X): '%s'
\n
"
,
cb
,
debugstr_an
(
pv
,
cb
));
return
S_OK
;
}
...
...
@@ -618,7 +618,7 @@ static HRESULT WINAPI IDirectMusicLoaderGenericStream_IStream_QueryInterface (LP
static
ULONG
WINAPI
IDirectMusicLoaderGenericStream_IStream_AddRef
(
LPSTREAM
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicLoaderGenericStream
,
StreamVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %
l
d
\n
"
,
This
,
This
->
dwRef
);
TRACE
(
"(%p): AddRef from %d
\n
"
,
This
,
This
->
dwRef
);
return
InterlockedIncrement
(
&
This
->
dwRef
);
}
...
...
@@ -626,7 +626,7 @@ static ULONG WINAPI IDirectMusicLoaderGenericStream_IStream_Release (LPSTREAM if
ICOM_THIS_MULTI
(
IDirectMusicLoaderGenericStream
,
StreamVtbl
,
iface
);
DWORD
dwRef
=
InterlockedDecrement
(
&
This
->
dwRef
);
TRACE
(
"(%p): ReleaseRef to %
l
d
\n
"
,
This
,
dwRef
);
TRACE
(
"(%p): ReleaseRef to %d
\n
"
,
This
,
dwRef
);
if
(
dwRef
==
0
)
{
IDirectMusicLoaderGenericStream_Detach
(
iface
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -638,7 +638,7 @@ static ULONG WINAPI IDirectMusicLoaderGenericStream_IStream_Release (LPSTREAM if
static
HRESULT
WINAPI
IDirectMusicLoaderGenericStream_IStream_Read
(
LPSTREAM
iface
,
void
*
pv
,
ULONG
cb
,
ULONG
*
pcbRead
)
{
ICOM_THIS_MULTI
(
IDirectMusicLoaderGenericStream
,
StreamVtbl
,
iface
);
TRACE_
(
dmfileraw
)(
"(%p, %p, 0x%08
l
X, %p): redirecting to low-level stream
\n
"
,
This
,
pv
,
cb
,
pcbRead
);
TRACE_
(
dmfileraw
)(
"(%p, %p, 0x%08X, %p): redirecting to low-level stream
\n
"
,
This
,
pv
,
cb
,
pcbRead
);
if
(
!
This
->
pStream
)
return
E_FAIL
;
...
...
@@ -676,7 +676,7 @@ static HRESULT WINAPI IDirectMusicLoaderGenericStream_IStream_Clone (LPSTREAM if
static
HRESULT
WINAPI
IDirectMusicLoaderGenericStream_IStream_Write
(
LPSTREAM
iface
,
const
void
*
pv
,
ULONG
cb
,
ULONG
*
pcbWritten
)
{
ICOM_THIS_MULTI
(
IDirectMusicLoaderGenericStream
,
StreamVtbl
,
iface
);
TRACE_
(
dmfileraw
)(
"(%p, %p, 0x%08
l
X, %p): redirecting to low-level stream
\n
"
,
This
,
pv
,
cb
,
pcbWritten
);
TRACE_
(
dmfileraw
)(
"(%p, %p, 0x%08X, %p): redirecting to low-level stream
\n
"
,
This
,
pv
,
cb
,
pcbWritten
);
if
(
!
This
->
pStream
)
return
E_FAIL
;
...
...
@@ -703,7 +703,7 @@ static HRESULT WINAPI IDirectMusicLoaderGenericStream_IStream_CopyTo (LPSTREAM i
static
HRESULT
WINAPI
IDirectMusicLoaderGenericStream_IStream_Commit
(
LPSTREAM
iface
,
DWORD
grfCommitFlags
)
{
ICOM_THIS_MULTI
(
IDirectMusicLoaderGenericStream
,
StreamVtbl
,
iface
);
TRACE
(
"(%p, 0x%08
l
X): redirecting to low-level stream
\n
"
,
This
,
grfCommitFlags
);
TRACE
(
"(%p, 0x%08X): redirecting to low-level stream
\n
"
,
This
,
grfCommitFlags
);
if
(
!
This
->
pStream
)
return
E_FAIL
;
...
...
@@ -721,7 +721,7 @@ static HRESULT WINAPI IDirectMusicLoaderGenericStream_IStream_Revert (LPSTREAM i
static
HRESULT
WINAPI
IDirectMusicLoaderGenericStream_IStream_LockRegion
(
LPSTREAM
iface
,
ULARGE_INTEGER
libOffset
,
ULARGE_INTEGER
cb
,
DWORD
dwLockType
)
{
ICOM_THIS_MULTI
(
IDirectMusicLoaderGenericStream
,
StreamVtbl
,
iface
);
TRACE
(
"(%p, 0x%08llX, 0x%08llX, 0x%08
l
X): redirecting to low-level stream
\n
"
,
This
,
libOffset
.
QuadPart
,
cb
.
QuadPart
,
dwLockType
);
TRACE
(
"(%p, 0x%08llX, 0x%08llX, 0x%08X): redirecting to low-level stream
\n
"
,
This
,
libOffset
.
QuadPart
,
cb
.
QuadPart
,
dwLockType
);
if
(
!
This
->
pStream
)
return
E_FAIL
;
...
...
@@ -730,7 +730,7 @@ static HRESULT WINAPI IDirectMusicLoaderGenericStream_IStream_LockRegion (LPSTRE
static
HRESULT
WINAPI
IDirectMusicLoaderGenericStream_IStream_UnlockRegion
(
LPSTREAM
iface
,
ULARGE_INTEGER
libOffset
,
ULARGE_INTEGER
cb
,
DWORD
dwLockType
)
{
ICOM_THIS_MULTI
(
IDirectMusicLoaderGenericStream
,
StreamVtbl
,
iface
);
TRACE
(
"(%p, 0x%08llX, 0x%08llX, 0x%08
l
X): redirecting to low-level stream
\n
"
,
This
,
libOffset
.
QuadPart
,
cb
.
QuadPart
,
dwLockType
);
TRACE
(
"(%p, 0x%08llX, 0x%08llX, 0x%08X): redirecting to low-level stream
\n
"
,
This
,
libOffset
.
QuadPart
,
cb
.
QuadPart
,
dwLockType
);
if
(
!
This
->
pStream
)
return
E_FAIL
;
...
...
@@ -739,7 +739,7 @@ static HRESULT WINAPI IDirectMusicLoaderGenericStream_IStream_UnlockRegion (LPST
static
HRESULT
WINAPI
IDirectMusicLoaderGenericStream_IStream_Stat
(
LPSTREAM
iface
,
STATSTG
*
pstatstg
,
DWORD
grfStatFlag
)
{
ICOM_THIS_MULTI
(
IDirectMusicLoaderGenericStream
,
StreamVtbl
,
iface
);
TRACE
(
"(%p, %p, 0x%08
l
X): redirecting to low-level stream
\n
"
,
This
,
pstatstg
,
grfStatFlag
);
TRACE
(
"(%p, %p, 0x%08X): redirecting to low-level stream
\n
"
,
This
,
pstatstg
,
grfStatFlag
);
if
(
!
This
->
pStream
)
return
E_FAIL
;
...
...
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