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
b0337ada
Commit
b0337ada
authored
Mar 17, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Mar 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Allow SND_ALIAS|SND_FILENAME in PlaySound.
parent
5a18e2a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
playsound.c
dlls/winmm/playsound.c
+4
-3
No files found.
dlls/winmm/playsound.c
View file @
b0337ada
...
...
@@ -200,6 +200,7 @@ static BOOL PlaySound_IsString(DWORD fdwSound, const void* psz)
case
SND_MEMORY
:
return
FALSE
;
case
SND_ALIAS
:
case
SND_FILENAME
:
case
SND_ALIAS
|
SND_FILENAME
:
case
0
:
return
TRUE
;
default:
FIXME
(
"WTF
\n
"
);
return
FALSE
;
}
...
...
@@ -308,7 +309,7 @@ static DWORD WINAPI proc_PlaySound(LPVOID arg)
TRACE
(
"Memory sound %p
\n
"
,
data
);
hmmio
=
mmioOpenW
(
NULL
,
&
mminfo
,
MMIO_READ
);
}
else
if
(
wps
->
fdwSound
&
SND_ALIAS
)
if
(
!
hmmio
&&
wps
->
fdwSound
&
SND_ALIAS
)
{
if
((
wps
->
fdwSound
&
SND_ALIAS_ID
)
==
SND_ALIAS_ID
)
{
...
...
@@ -342,11 +343,11 @@ static DWORD WINAPI proc_PlaySound(LPVOID arg)
}
hmmio
=
get_mmioFromProfile
(
wps
->
fdwSound
,
wps
->
pszSound
);
}
else
if
(
wps
->
fdwSound
&
SND_FILENAME
)
if
(
!
hmmio
&&
wps
->
fdwSound
&
SND_FILENAME
)
{
hmmio
=
get_mmioFromFile
(
wps
->
pszSound
);
}
else
if
(
!
(
wps
->
fdwSound
&
(
SND_FILENAME
|
SND_ALIAS
|
SND_MEMORY
)))
{
if
((
hmmio
=
get_mmioFromProfile
(
wps
->
fdwSound
|
SND_NODEFAULT
,
wps
->
pszSound
))
==
0
)
{
...
...
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