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
563a4ff0
Commit
563a4ff0
authored
Feb 25, 2015
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Feb 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Add .wav extension when searching for PlaySound.
parent
e808fb19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
playsound.c
dlls/winmm/playsound.c
+2
-1
wave.c
dlls/winmm/tests/wave.c
+1
-1
No files found.
dlls/winmm/playsound.c
View file @
563a4ff0
...
...
@@ -55,11 +55,12 @@ static HMMIO get_mmioFromFile(LPCWSTR lpszName)
HMMIO
ret
;
WCHAR
buf
[
256
];
LPWSTR
dummy
;
static
const
WCHAR
dotwav
[]
=
{
'.'
,
'w'
,
'a'
,
'v'
,
0
};
ret
=
mmioOpenW
((
LPWSTR
)
lpszName
,
NULL
,
MMIO_ALLOCBUF
|
MMIO_READ
|
MMIO_DENYWRITE
);
if
(
ret
!=
0
)
return
ret
;
if
(
SearchPathW
(
NULL
,
lpszName
,
NULL
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]),
buf
,
&
dummy
))
if
(
SearchPathW
(
NULL
,
lpszName
,
dotwav
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]),
buf
,
&
dummy
))
{
return
mmioOpenW
(
buf
,
NULL
,
MMIO_ALLOCBUF
|
MMIO_READ
|
MMIO_DENYWRITE
);
...
...
dlls/winmm/tests/wave.c
View file @
563a4ff0
...
...
@@ -1676,7 +1676,7 @@ static void test_PlaySound(void)
/* no extensions */
*
exts
=
'\0'
;
br
=
PlaySoundA
(
temp
,
NULL
,
SND_FILENAME
|
SND_NODEFAULT
);
todo_wine
ok
(
br
,
"PlaySound failed, got %d
\n
"
,
br
);
ok
(
br
,
"PlaySound failed, got %d
\n
"
,
br
);
/* ends with a dot */
strcpy
(
exts
,
"."
);
...
...
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