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
36d88d92
Commit
36d88d92
authored
Oct 08, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenum: Win64 printf format warning fixes.
parent
44072183
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
20 deletions
+19
-20
Makefile.in
dlls/devenum/Makefile.in
+0
-1
createdevenum.c
dlls/devenum/createdevenum.c
+2
-2
devenum_main.c
dlls/devenum/devenum_main.c
+2
-2
mediacatenum.c
dlls/devenum/mediacatenum.c
+14
-14
parsedisplayname.c
dlls/devenum/parsedisplayname.c
+1
-1
No files found.
dlls/devenum/Makefile.in
View file @
36d88d92
...
@@ -5,7 +5,6 @@ VPATH = @srcdir@
...
@@ -5,7 +5,6 @@ VPATH = @srcdir@
MODULE
=
devenum.dll
MODULE
=
devenum.dll
IMPORTS
=
ole32 oleaut32 avicap32 winmm user32 advapi32 kernel32
IMPORTS
=
ole32 oleaut32 avicap32 winmm user32 advapi32 kernel32
EXTRALIBS
=
-lstrmiids
-luuid
EXTRALIBS
=
-lstrmiids
-luuid
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
C_SRCS
=
\
C_SRCS
=
\
createdevenum.c
\
createdevenum.c
\
...
...
dlls/devenum/createdevenum.c
View file @
36d88d92
...
@@ -110,7 +110,7 @@ HRESULT WINAPI DEVENUM_ICreateDevEnum_CreateClassEnumerator(
...
@@ -110,7 +110,7 @@ HRESULT WINAPI DEVENUM_ICreateDevEnum_CreateClassEnumerator(
HKEY
hbasekey
;
HKEY
hbasekey
;
CreateDevEnumImpl
*
This
=
(
CreateDevEnumImpl
*
)
iface
;
CreateDevEnumImpl
*
This
=
(
CreateDevEnumImpl
*
)
iface
;
TRACE
(
"(%p)->(%s, %p, %
l
x)
\n\t
DeviceClass:
\t
%s
\n
"
,
This
,
debugstr_guid
(
clsidDeviceClass
),
ppEnumMoniker
,
dwFlags
,
debugstr_guid
(
clsidDeviceClass
));
TRACE
(
"(%p)->(%s, %p, %x)
\n\t
DeviceClass:
\t
%s
\n
"
,
This
,
debugstr_guid
(
clsidDeviceClass
),
ppEnumMoniker
,
dwFlags
,
debugstr_guid
(
clsidDeviceClass
));
if
(
!
ppEnumMoniker
)
if
(
!
ppEnumMoniker
)
return
E_POINTER
;
return
E_POINTER
;
...
@@ -243,7 +243,7 @@ static HRESULT DEVENUM_CreateSpecialCategories()
...
@@ -243,7 +243,7 @@ static HRESULT DEVENUM_CreateSpecialCategories()
if
(
!
LoadStringW
(
DEVENUM_hInstance
,
IDS_DEVENUM_DS
,
szDSoundNameFormat
,
sizeof
(
szDSoundNameFormat
)
/
sizeof
(
szDSoundNameFormat
[
0
])
-
1
))
if
(
!
LoadStringW
(
DEVENUM_hInstance
,
IDS_DEVENUM_DS
,
szDSoundNameFormat
,
sizeof
(
szDSoundNameFormat
)
/
sizeof
(
szDSoundNameFormat
[
0
])
-
1
))
{
{
ERR
(
"Couldn't get string resource (GetLastError() is %
l
d)
\n
"
,
GetLastError
());
ERR
(
"Couldn't get string resource (GetLastError() is %d)
\n
"
,
GetLastError
());
return
HRESULT_FROM_WIN32
(
GetLastError
());
return
HRESULT_FROM_WIN32
(
GetLastError
());
}
}
...
...
dlls/devenum/devenum_main.c
View file @
36d88d92
...
@@ -48,7 +48,7 @@ const WCHAR clsid_keyname[6] = { 'C', 'L', 'S', 'I', 'D', 0 };
...
@@ -48,7 +48,7 @@ const WCHAR clsid_keyname[6] = { 'C', 'L', 'S', 'I', 'D', 0 };
*/
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
fImpLoad
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
fImpLoad
)
{
{
TRACE
(
"%p 0x%
l
x %p
\n
"
,
hinstDLL
,
fdwReason
,
fImpLoad
);
TRACE
(
"%p 0x%x %p
\n
"
,
hinstDLL
,
fdwReason
,
fImpLoad
);
switch
(
fdwReason
)
{
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
case
DLL_PROCESS_ATTACH
:
...
@@ -382,6 +382,6 @@ static void DEVENUM_RegisterQuartz()
...
@@ -382,6 +382,6 @@ static void DEVENUM_RegisterQuartz()
{
{
HRESULT
hr
=
pDllRegisterServer
();
HRESULT
hr
=
pDllRegisterServer
();
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
ERR
(
"Failed to register Quartz. Error was 0x%
l
x)
\n
"
,
hr
);
ERR
(
"Failed to register Quartz. Error was 0x%x)
\n
"
,
hr
);
}
}
}
}
dlls/devenum/mediacatenum.c
View file @
36d88d92
...
@@ -129,7 +129,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read(
...
@@ -129,7 +129,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read(
{
{
res
=
E_INVALIDARG
;
/* assume we cannot coerce into right type */
res
=
E_INVALIDARG
;
/* assume we cannot coerce into right type */
TRACE
(
"Read %
l
d bytes (%s)
\n
"
,
received
,
type
==
REG_SZ
?
debugstr_w
((
LPWSTR
)
pData
)
:
"binary data"
);
TRACE
(
"Read %d bytes (%s)
\n
"
,
received
,
type
==
REG_SZ
?
debugstr_w
((
LPWSTR
)
pData
)
:
"binary data"
);
switch
(
type
)
switch
(
type
)
{
{
...
@@ -151,7 +151,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read(
...
@@ -151,7 +151,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read(
}
}
break
;
break
;
case
REG_DWORD
:
case
REG_DWORD
:
TRACE
(
"REG_DWORD: %
l
x
\n
"
,
*
(
DWORD
*
)
pData
);
TRACE
(
"REG_DWORD: %x
\n
"
,
*
(
DWORD
*
)
pData
);
switch
(
V_VT
(
pVar
))
switch
(
V_VT
(
pVar
))
{
{
case
VT_EMPTY
:
case
VT_EMPTY
:
...
@@ -170,7 +170,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read(
...
@@ -170,7 +170,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read(
void
*
pArrayElements
;
void
*
pArrayElements
;
bound
.
lLbound
=
0
;
bound
.
lLbound
=
0
;
bound
.
cElements
=
received
;
bound
.
cElements
=
received
;
TRACE
(
"REG_BINARY: len = %
l
d
\n
"
,
received
);
TRACE
(
"REG_BINARY: len = %d
\n
"
,
received
);
switch
(
V_VT
(
pVar
))
switch
(
V_VT
(
pVar
))
{
{
case
VT_EMPTY
:
case
VT_EMPTY
:
...
@@ -194,12 +194,12 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read(
...
@@ -194,12 +194,12 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read(
}
}
}
}
if
(
res
==
E_INVALIDARG
)
if
(
res
==
E_INVALIDARG
)
FIXME
(
"Variant type %x not supported for regtype %
l
x
\n
"
,
V_VT
(
pVar
),
type
);
FIXME
(
"Variant type %x not supported for regtype %x
\n
"
,
V_VT
(
pVar
),
type
);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
pData
);
HeapFree
(
GetProcessHeap
(),
0
,
pData
);
TRACE
(
"<- %
l
x
\n
"
,
res
);
TRACE
(
"<- %x
\n
"
,
res
);
return
res
;
return
res
;
}
}
...
@@ -226,7 +226,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Write(
...
@@ -226,7 +226,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Write(
break
;
break
;
case
VT_I4
:
case
VT_I4
:
case
VT_UI4
:
case
VT_UI4
:
TRACE
(
"writing %
l
u
\n
"
,
V_UNION
(
pVar
,
ulVal
));
TRACE
(
"writing %u
\n
"
,
V_UNION
(
pVar
,
ulVal
));
lpData
=
(
LPVOID
)
&
V_UNION
(
pVar
,
ulVal
);
lpData
=
(
LPVOID
)
&
V_UNION
(
pVar
,
ulVal
);
dwType
=
REG_DWORD
;
dwType
=
REG_DWORD
;
cbData
=
sizeof
(
DWORD
);
cbData
=
sizeof
(
DWORD
);
...
@@ -239,7 +239,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Write(
...
@@ -239,7 +239,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Write(
res
=
SafeArrayGetLBound
(
V_UNION
(
pVar
,
parray
),
1
,
&
lLbound
);
res
=
SafeArrayGetLBound
(
V_UNION
(
pVar
,
parray
),
1
,
&
lLbound
);
res
=
SafeArrayGetUBound
(
V_UNION
(
pVar
,
parray
),
1
,
&
lUbound
);
res
=
SafeArrayGetUBound
(
V_UNION
(
pVar
,
parray
),
1
,
&
lUbound
);
cbData
=
(
lUbound
-
lLbound
+
1
)
/* * sizeof(BYTE)*/
;
cbData
=
(
lUbound
-
lLbound
+
1
)
/* * sizeof(BYTE)*/
;
TRACE
(
"cbData: %
l
d
\n
"
,
cbData
);
TRACE
(
"cbData: %d
\n
"
,
cbData
);
res
=
SafeArrayAccessData
(
V_UNION
(
pVar
,
parray
),
&
lpData
);
res
=
SafeArrayAccessData
(
V_UNION
(
pVar
,
parray
),
&
lpData
);
break
;
break
;
}
}
...
@@ -449,7 +449,7 @@ static HRESULT WINAPI DEVENUM_IMediaCatMoniker_BindToObject(
...
@@ -449,7 +449,7 @@ static HRESULT WINAPI DEVENUM_IMediaCatMoniker_BindToObject(
IPropertyBag_Release
(
pProp
);
IPropertyBag_Release
(
pProp
);
}
}
TRACE
(
"<- 0x%
l
x
\n
"
,
res
);
TRACE
(
"<- 0x%x
\n
"
,
res
);
return
res
;
return
res
;
}
}
...
@@ -486,7 +486,7 @@ static HRESULT WINAPI DEVENUM_IMediaCatMoniker_Reduce(
...
@@ -486,7 +486,7 @@ static HRESULT WINAPI DEVENUM_IMediaCatMoniker_Reduce(
IMoniker
**
ppmkToLeft
,
IMoniker
**
ppmkToLeft
,
IMoniker
**
ppmkReduced
)
IMoniker
**
ppmkReduced
)
{
{
TRACE
(
"(%p, %
l
d, %p, %p)
\n
"
,
pbc
,
dwReduceHowFar
,
ppmkToLeft
,
ppmkReduced
);
TRACE
(
"(%p, %d, %p, %p)
\n
"
,
pbc
,
dwReduceHowFar
,
ppmkToLeft
,
ppmkReduced
);
if
(
ppmkToLeft
)
if
(
ppmkToLeft
)
*
ppmkToLeft
=
NULL
;
*
ppmkToLeft
=
NULL
;
...
@@ -730,7 +730,7 @@ static ULONG WINAPI DEVENUM_IEnumMoniker_AddRef(LPENUMMONIKER iface)
...
@@ -730,7 +730,7 @@ static ULONG WINAPI DEVENUM_IEnumMoniker_AddRef(LPENUMMONIKER iface)
EnumMonikerImpl
*
This
=
(
EnumMonikerImpl
*
)
iface
;
EnumMonikerImpl
*
This
=
(
EnumMonikerImpl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->() AddRef from %
l
d
\n
"
,
iface
,
ref
-
1
);
TRACE
(
"(%p)->() AddRef from %d
\n
"
,
iface
,
ref
-
1
);
return
ref
;
return
ref
;
}
}
...
@@ -743,7 +743,7 @@ static ULONG WINAPI DEVENUM_IEnumMoniker_Release(LPENUMMONIKER iface)
...
@@ -743,7 +743,7 @@ static ULONG WINAPI DEVENUM_IEnumMoniker_Release(LPENUMMONIKER iface)
EnumMonikerImpl
*
This
=
(
EnumMonikerImpl
*
)
iface
;
EnumMonikerImpl
*
This
=
(
EnumMonikerImpl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->() Release from %
l
d
\n
"
,
iface
,
ref
+
1
);
TRACE
(
"(%p)->() Release from %d
\n
"
,
iface
,
ref
+
1
);
if
(
!
ref
)
if
(
!
ref
)
{
{
...
@@ -763,7 +763,7 @@ static HRESULT WINAPI DEVENUM_IEnumMoniker_Next(LPENUMMONIKER iface, ULONG celt,
...
@@ -763,7 +763,7 @@ static HRESULT WINAPI DEVENUM_IEnumMoniker_Next(LPENUMMONIKER iface, ULONG celt,
MediaCatMoniker
*
pMoniker
;
MediaCatMoniker
*
pMoniker
;
EnumMonikerImpl
*
This
=
(
EnumMonikerImpl
*
)
iface
;
EnumMonikerImpl
*
This
=
(
EnumMonikerImpl
*
)
iface
;
TRACE
(
"(%p)->(%
l
d, %p, %p)
\n
"
,
iface
,
celt
,
rgelt
,
pceltFetched
);
TRACE
(
"(%p)->(%d, %p, %p)
\n
"
,
iface
,
celt
,
rgelt
,
pceltFetched
);
while
(
fetched
<
celt
)
while
(
fetched
<
celt
)
{
{
...
@@ -787,7 +787,7 @@ static HRESULT WINAPI DEVENUM_IEnumMoniker_Next(LPENUMMONIKER iface, ULONG celt,
...
@@ -787,7 +787,7 @@ static HRESULT WINAPI DEVENUM_IEnumMoniker_Next(LPENUMMONIKER iface, ULONG celt,
This
->
index
+=
fetched
;
This
->
index
+=
fetched
;
TRACE
(
"-- fetched %
l
d
\n
"
,
fetched
);
TRACE
(
"-- fetched %d
\n
"
,
fetched
);
if
(
pceltFetched
)
if
(
pceltFetched
)
*
pceltFetched
=
fetched
;
*
pceltFetched
=
fetched
;
...
@@ -802,7 +802,7 @@ static HRESULT WINAPI DEVENUM_IEnumMoniker_Skip(LPENUMMONIKER iface, ULONG celt)
...
@@ -802,7 +802,7 @@ static HRESULT WINAPI DEVENUM_IEnumMoniker_Skip(LPENUMMONIKER iface, ULONG celt)
{
{
EnumMonikerImpl
*
This
=
(
EnumMonikerImpl
*
)
iface
;
EnumMonikerImpl
*
This
=
(
EnumMonikerImpl
*
)
iface
;
TRACE
(
"(%p)->(%
l
d)
\n
"
,
iface
,
celt
);
TRACE
(
"(%p)->(%d)
\n
"
,
iface
,
celt
);
This
->
index
+=
celt
;
This
->
index
+=
celt
;
...
...
dlls/devenum/parsedisplayname.c
View file @
36d88d92
...
@@ -149,7 +149,7 @@ static HRESULT WINAPI DEVENUM_IParseDisplayName_ParseDisplayName(
...
@@ -149,7 +149,7 @@ static HRESULT WINAPI DEVENUM_IParseDisplayName_ParseDisplayName(
CoTaskMemFree
(
pszClass
);
CoTaskMemFree
(
pszClass
);
TRACE
(
"-- returning: %
l
x
\n
"
,
res
);
TRACE
(
"-- returning: %x
\n
"
,
res
);
return
res
;
return
res
;
}
}
...
...
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