Added MessageBoxes in case of registry funcs errors Modified: trunk/reactos/lib/cpl/intl/locale.c _____
Modified: trunk/reactos/lib/cpl/intl/locale.c --- trunk/reactos/lib/cpl/intl/locale.c 2005-05-12 19:32:15 UTC (rev 15244) +++ trunk/reactos/lib/cpl/intl/locale.c 2005-05-12 19:46:14 UTC (rev 15245) @@ -102,7 +102,7 @@
if (ret != ERROR_SUCCESS) { // some serious error - //TODO: Tell user about it + MessageBoxW(NULL, L"Problem opening HKCU\Control Panel\International key", L"Big Problem", MB_OK); return; }
@@ -116,7 +116,10 @@ ret = RegOpenKeyW(HKEY_LOCAL_MACHINE, L"SYSTEM\CurrentControlSet\Control\NLS\Language", &langKey);
if (ret != ERROR_SUCCESS) + { + MessageBoxW(NULL, L"Problem opening HKLM\SYSTEM\CurrentControlSet\Control\NLS\Language key", L"Big Problem", MB_OK); return; + }
RegSetValueExW(langKey, L"Default", 0, REG_SZ, (BYTE *)value, valuesize ); RegSetValueExW(langKey, L"InstallLanguage", 0, REG_SZ, (BYTE *)value, valuesize );