mirror of
https://github.com/reactos/reactos.git
synced 2024-11-28 05:53:31 +08:00
[WINESYNC][WINMM] Add .wav extension when searching for PlaySound
Wine commit: 563a4ff08ba9137dda4803a83d8937b3037fa25e author: Akihiro Sagawa <sagawa.aki@gmail.com> Tue, 24 Feb 2015 16:38:47 +0000 (01:38 +0900) committer: Alexandre Julliard <julliard@winehq.org> Wed, 25 Feb 2015 05:17:46 +0000 (14:17 +0900)
This commit is contained in:
parent
41874cccc5
commit
582d2f4684
@ -46,7 +46,7 @@ static HMMIO get_mmioFromFile(LPCWSTR lpszName)
|
||||
ret = mmioOpenW((LPWSTR)lpszName, NULL,
|
||||
MMIO_ALLOCBUF | MMIO_READ | MMIO_DENYWRITE);
|
||||
if (ret != 0) return ret;
|
||||
if (SearchPathW(NULL, lpszName, NULL, ARRAY_SIZE(buf), buf, &dummy))
|
||||
if (SearchPathW(NULL, lpszName, L".wav", ARRAY_SIZE(buf), buf, &dummy))
|
||||
{
|
||||
return mmioOpenW(buf, NULL,
|
||||
MMIO_ALLOCBUF | MMIO_READ | MMIO_DENYWRITE);
|
||||
|
Loading…
Reference in New Issue
Block a user