https://git.reactos.org/?p=reactos.git;a=commitdiff;h=582d2f468456717e4522724ef14ff2540ce52cd4

commit 582d2f468456717e4522724ef14ff2540ce52cd4
Author:     Thamatip Chitpong <[email protected]>
AuthorDate: Wed Jun 14 09:04:38 2023 +0700
Commit:     Stanislav Motylkov <[email protected]>
CommitDate: Thu Jul 6 13:36:21 2023 +0300

    [WINESYNC][WINMM] Add .wav extension when searching for PlaySound
    
    Wine commit: 563a4ff08ba9137dda4803a83d8937b3037fa25e
    
    author: Akihiro Sagawa <[email protected]>
    Tue, 24 Feb 2015 16:38:47 +0000 (01:38 +0900)
    
    committer: Alexandre Julliard <[email protected]>
    Wed, 25 Feb 2015 05:17:46 +0000 (14:17 +0900)
---
 dll/win32/winmm/playsound.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dll/win32/winmm/playsound.c b/dll/win32/winmm/playsound.c
index 1a13a020008..27310b02fb4 100644
--- a/dll/win32/winmm/playsound.c
+++ b/dll/win32/winmm/playsound.c
@@ -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);

Reply via email to