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
e50dfb69
Commit
e50dfb69
authored
Nov 12, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Use BOOL type where appropriate.
parent
1d65efe5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
devenum.c
dlls/mmdevapi/devenum.c
+9
-9
No files found.
dlls/mmdevapi/devenum.c
View file @
e50dfb69
...
...
@@ -1066,8 +1066,8 @@ static void notify_clients(EDataFlow flow, ERole role, const WCHAR *id)
notify_clients
(
flow
,
eMultimedia
,
id
);
}
static
int
notify_if_changed
(
EDataFlow
flow
,
ERole
role
,
HKEY
key
,
const
WCHAR
*
val_name
,
WCHAR
*
old_val
,
IMMDevice
*
def_dev
)
static
BOOL
notify_if_changed
(
EDataFlow
flow
,
ERole
role
,
HKEY
key
,
const
WCHAR
*
val_name
,
WCHAR
*
old_val
,
IMMDevice
*
def_dev
)
{
WCHAR
new_val
[
64
],
*
id
;
DWORD
size
;
...
...
@@ -1082,7 +1082,7 @@ static int notify_if_changed(EDataFlow flow, ERole role, HKEY key,
hr
=
IMMDevice_GetId
(
def_dev
,
&
id
);
if
(
FAILED
(
hr
)){
ERR
(
"GetId failed: %08x
\n
"
,
hr
);
return
0
;
return
FALSE
;
}
}
else
id
=
NULL
;
...
...
@@ -1091,23 +1091,23 @@ static int notify_if_changed(EDataFlow flow, ERole role, HKEY key,
old_val
[
0
]
=
0
;
CoTaskMemFree
(
id
);
return
1
;
return
TRUE
;
}
/* system default -> system default, noop */
return
0
;
return
FALSE
;
}
if
(
!
lstrcmpW
(
old_val
,
new_val
)){
/* set by user -> same value */
return
0
;
return
FALSE
;
}
if
(
new_val
[
0
]
!=
0
){
/* set by user -> different value */
notify_clients
(
flow
,
role
,
new_val
);
memcpy
(
old_val
,
new_val
,
sizeof
(
new_val
));
return
1
;
return
TRUE
;
}
/* set by user -> system default */
...
...
@@ -1115,7 +1115,7 @@ static int notify_if_changed(EDataFlow flow, ERole role, HKEY key,
hr
=
IMMDevice_GetId
(
def_dev
,
&
id
);
if
(
FAILED
(
hr
)){
ERR
(
"GetId failed: %08x
\n
"
,
hr
);
return
0
;
return
FALSE
;
}
}
else
id
=
NULL
;
...
...
@@ -1124,7 +1124,7 @@ static int notify_if_changed(EDataFlow flow, ERole role, HKEY key,
old_val
[
0
]
=
0
;
CoTaskMemFree
(
id
);
return
1
;
return
TRUE
;
}
static
DWORD
WINAPI
notif_thread_proc
(
void
*
user
)
...
...
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