[ros-diffs] [fireball] 15245: Added MessageBoxes in case of registry funcs errors

fireball at svn.reactos.com fireball at svn.reactos.com
Thu May 12 21:46:16 CEST 2005


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 );
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050512/c7aae543/attachment.html


More information about the Ros-diffs mailing list