--- trunk/reactos/subsys/system/userinit/En.rc 2005-04-30 18:55:44 UTC (rev 14887)
+++ trunk/reactos/subsys/system/userinit/En.rc 2005-04-30 19:00:46 UTC (rev 14888)
@@ -0,0 +1,12 @@
+#include "resource.h"
+/* Start move all hard code string to En.rc
+ * By Magnus Olsen 2005
+ */
+
+LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
+STRINGTABLE DISCARDABLE
+{
+
+STRING_USERINIT_FAIL, "Userinit failed to start the shell!\n"
+
+}
--- trunk/reactos/subsys/system/userinit/userinit.c 2005-04-30 18:55:44 UTC (rev 14887)
+++ trunk/reactos/subsys/system/userinit/userinit.c 2005-04-30 19:00:46 UTC (rev 14888)
@@ -24,6 +24,7 @@
* PROGRAMMERS: Thomas Weidenmueller (w3seek@users.sourceforge.net)
*/
#include <windows.h>
+#include "resource.h"
/* GLOBALS ******************************************************************/
@@ -77,6 +78,7 @@
PROCESS_INFORMATION pi;
WCHAR Shell[MAX_PATH];
WCHAR ExpandedShell[MAX_PATH];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
GetShell(Shell);
@@ -102,7 +104,10 @@
CloseHandle(pi.hThread);
}
else
- MessageBox(0, L"Userinit failed to start the shell!\n", NULL, 0);
+ {
+ LoadString( GetModuleHandle(NULL), STRING_USERINIT_FAIL, (LPTSTR) szMsg,sizeof(szMsg));
+ MessageBox(0, szMsg, NULL, 0);
+ }
}
static
--- trunk/reactos/subsys/system/userinit/userinit.rc 2005-04-30 18:55:44 UTC (rev 14887)
+++ trunk/reactos/subsys/system/userinit/userinit.rc 2005-04-30 19:00:46 UTC (rev 14888)
@@ -1,6 +1,9 @@
/* $Id$ */
+#include <windows.h>
#define REACTOS_STR_FILE_DESCRIPTION "Userinit Logon Application\0"
#define REACTOS_STR_INTERNAL_NAME "userinit\0"
#define REACTOS_STR_ORIGINAL_FILENAME "userinit.dll\0"
#include <reactos/version.rc>
+#include "En.rc"
+