Author: janderwald
Date: Sun May 17 19:50:48 2009
New Revision: 40960
URL:
http://svn.reactos.org/svn/reactos?rev=40960&view=rev
Log:
- Sound events should be stored in REG_EXPAND_SZ keys
Modified:
trunk/reactos/dll/cpl/mmsys/mmsys.c
Modified: trunk/reactos/dll/cpl/mmsys/mmsys.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/mmsys.c?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/mmsys.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/mmsys/mmsys.c [iso-8859-1] Sun May 17 19:50:48 2009
@@ -273,13 +273,13 @@
swprintf(Path, L"%%SystemRoot%%\\media\\%s",
EventLabels[i].FileName);
if (RegCreateKeyExW(hSubKey, L".Current", 0, NULL,
REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hScheme, NULL) == ERROR_SUCCESS)
{
- RegSetValueExW(hScheme, NULL, 0, REG_SZ, (LPBYTE)Path, (wcslen(Path)+1) *
sizeof(WCHAR));
+ RegSetValueExW(hScheme, NULL, 0, REG_EXPAND_SZ, (LPBYTE)Path,
(wcslen(Path)+1) * sizeof(WCHAR));
RegCloseKey(hScheme);
}
if (RegCreateKeyExW(hSubKey, L".Default", 0, NULL,
REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hScheme, NULL) == ERROR_SUCCESS)
{
- RegSetValueExW(hScheme, NULL, 0, REG_SZ, (LPBYTE)Path, (wcslen(Path)+1) *
sizeof(WCHAR));
+ RegSetValueExW(hScheme, NULL, 0, REG_EXPAND_SZ, (LPBYTE)Path,
(wcslen(Path)+1) * sizeof(WCHAR));
RegCloseKey(hScheme);
}
RegCloseKey(hSubKey);