mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:06:04 +00:00
Added MessageBoxes in case of registry funcs errors
svn path=/trunk/; revision=15245
This commit is contained in:
parent
08142b98ea
commit
0eff533e7c
1 changed files with 4 additions and 1 deletions
|
@ -102,7 +102,7 @@ void SetNewLocale(LCID lcid)
|
|||
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 @@ void SetNewLocale(LCID lcid)
|
|||
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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue