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
8ca9621e
Commit
8ca9621e
authored
Mar 27, 2010
by
Mikhail Maroukhine
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Fix compiler warnings with flag -Wcast-qual.
parent
1637d402
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
devenum.c
dlls/mmdevapi/devenum.c
+5
-5
No files found.
dlls/mmdevapi/devenum.c
View file @
8ca9621e
...
...
@@ -170,8 +170,8 @@ static void MMDevice_Create(WCHAR *name, GUID *id, EDataFlow flow, DWORD state,
PROPVARIANT
pv
;
pv
.
vt
=
VT_LPWSTR
;
pv
.
u
.
pwszVal
=
name
;
MMDevice_SetPropValue
(
id
,
flow
,
(
PROPERTYKEY
*
)
&
DEVPKEY_Device_FriendlyName
,
&
pv
);
MMDevice_SetPropValue
(
id
,
flow
,
(
PROPERTYKEY
*
)
&
DEVPKEY_Device_DeviceDesc
,
&
pv
);
MMDevice_SetPropValue
(
id
,
flow
,
(
const
PROPERTYKEY
*
)
&
DEVPKEY_Device_FriendlyName
,
&
pv
);
MMDevice_SetPropValue
(
id
,
flow
,
(
const
PROPERTYKEY
*
)
&
DEVPKEY_Device_DeviceDesc
,
&
pv
);
RegCloseKey
(
keyprop
);
}
RegCloseKey
(
key
);
...
...
@@ -653,7 +653,7 @@ HRESULT MMDevice_SetPropValue(const GUID *devguid, DWORD flow, REFPROPERTYKEY ke
{
case
VT_UI4
:
{
ret
=
RegSetValueExW
(
regkey
,
buffer
,
0
,
REG_DWORD
,
(
BYTE
*
)
&
pv
->
u
.
ulVal
,
sizeof
(
DWORD
));
ret
=
RegSetValueExW
(
regkey
,
buffer
,
0
,
REG_DWORD
,
(
const
BYTE
*
)
&
pv
->
u
.
ulVal
,
sizeof
(
DWORD
));
break
;
}
case
VT_BLOB
:
...
...
@@ -665,7 +665,7 @@ HRESULT MMDevice_SetPropValue(const GUID *devguid, DWORD flow, REFPROPERTYKEY ke
}
case
VT_LPWSTR
:
{
ret
=
RegSetValueExW
(
regkey
,
buffer
,
0
,
REG_SZ
,
(
BYTE
*
)
pv
->
u
.
pwszVal
,
sizeof
(
WCHAR
)
*
(
1
+
lstrlenW
(
pv
->
u
.
pwszVal
)));
ret
=
RegSetValueExW
(
regkey
,
buffer
,
0
,
REG_SZ
,
(
const
BYTE
*
)
pv
->
u
.
pwszVal
,
sizeof
(
WCHAR
)
*
(
1
+
lstrlenW
(
pv
->
u
.
pwszVal
)));
break
;
}
default:
...
...
@@ -735,7 +735,7 @@ HRESULT MMDevEnum_Create(REFIID riid, void **ppv)
if
(
ret
!=
ERROR_SUCCESS
)
continue
;
if
(
SUCCEEDED
(
CLSIDFromString
(
guidvalue
,
&
guid
))
&&
SUCCEEDED
(
MMDevice_GetPropValue
(
&
guid
,
curflow
,
(
PROPERTYKEY
*
)
&
DEVPKEY_Device_FriendlyName
,
&
pv
))
&&
SUCCEEDED
(
MMDevice_GetPropValue
(
&
guid
,
curflow
,
(
const
PROPERTYKEY
*
)
&
DEVPKEY_Device_FriendlyName
,
&
pv
))
&&
pv
.
vt
==
VT_LPWSTR
)
{
MMDevice_Create
(
pv
.
u
.
pwszVal
,
&
guid
,
curflow
,
...
...
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