https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7d60b2e12f4d109ca456253125e76401ad4dab65

commit 7d60b2e12f4d109ca456253125e76401ad4dab65
Author:     Jared Smudde <[email protected]>
AuthorDate: Wed Jan 16 05:53:00 2019 -0600
Commit:     Hermès BÉLUSCA - MAÏTO <[email protected]>
CommitDate: Wed Jan 16 12:53:00 2019 +0100

    [MMSYS] Set the initial media folder location. (#1248)
---
 dll/cpl/mmsys/sounds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dll/cpl/mmsys/sounds.c b/dll/cpl/mmsys/sounds.c
index 3250432a9e..5d89dfd6aa 100644
--- a/dll/cpl/mmsys/sounds.c
+++ b/dll/cpl/mmsys/sounds.c
@@ -1157,7 +1157,7 @@ SoundsDlgProc(HWND hwndDlg,
                     ofn.nFilterIndex = 0;
                     LoadStringW(hApplet, IDS_BROWSE_FOR_SOUND, szTitle, 
_countof(szTitle));
                     ofn.lpstrTitle = szTitle;
-                    ofn.lpstrInitialDir = NULL;
+                    ofn.lpstrInitialDir = L"%SystemRoot%\\Media";
                     ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
 
                     if (GetOpenFileNameW(&ofn) != FALSE)

Reply via email to