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
31e52182
Commit
31e52182
authored
Aug 21, 2023
by
Davide Beatrici
Committed by
Alexandre Julliard
Aug 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winepulse: Fix crash when requesting exclusive mode with an unsupported format.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55362
parent
797a8bb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
pulse.c
dlls/winepulse.drv/pulse.c
+8
-3
No files found.
dlls/winepulse.drv/pulse.c
View file @
31e52182
...
...
@@ -2221,9 +2221,14 @@ static NTSTATUS pulse_is_format_supported(void *args)
break
;
}
/* This driver does not support exclusive mode. */
if
(
exclusive
&&
params
->
result
==
S_OK
)
params
->
result
=
params
->
flow
==
eCapture
?
AUDCLNT_E_UNSUPPORTED_FORMAT
:
AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED
;
if
(
exclusive
)
{
/* This driver does not support exclusive mode. */
if
(
params
->
result
==
S_OK
)
params
->
result
=
params
->
flow
==
eCapture
?
AUDCLNT_E_UNSUPPORTED_FORMAT
:
AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED
;
else
if
(
params
->
result
==
S_FALSE
)
params
->
result
=
AUDCLNT_E_UNSUPPORTED_FORMAT
;
}
return
STATUS_SUCCESS
;
}
...
...
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