[MMSYS] Add the OFN_EXPLORER flag to the Browse for sound dialog. (#3460)

This commit is contained in:
Jared Smudde 2021-02-14 14:40:30 -06:00 committed by GitHub
parent ac4b506eab
commit 8b6e5e87c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1151,7 +1151,7 @@ SoundsDlgProc(HWND hwndDlg,
LoadStringW(hApplet, IDS_BROWSE_FOR_SOUND, szTitle, _countof(szTitle));
ofn.lpstrTitle = szTitle;
ofn.lpstrInitialDir = L"%SystemRoot%\\Media";
ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
if (GetOpenFileNameW(&ofn) != FALSE)
{