Add a hack which allows to boot with Armenian language.
authorDmitry Gorbachev <gorbachev@reactos.org>
Thu, 18 Dec 2008 12:26:52 +0000 (12:26 +0000)
committerDmitry Gorbachev <gorbachev@reactos.org>
Thu, 18 Dec 2008 12:26:52 +0000 (12:26 +0000)
svn path=/trunk/; revision=38170

reactos/boot/freeldr/freeldr/reactos/reactos.c

index 6c496a5..9b388fb 100644 (file)
@@ -262,8 +262,11 @@ FrLdrLoadNlsFiles(PCHAR szSystemRoot,
     rc = RegQueryValue(hKey, szIdBuffer, NULL, (PUCHAR)szNameBuffer, &BufferSize);
     if (rc != ERROR_SUCCESS) {
 
-        strcpy(szErrorOut, "ACP NLS Setting exists, but isn't readable");
-        return(FALSE);
+        //strcpy(szErrorOut, "ACP NLS Setting exists, but isn't readable");
+        //return(FALSE);
+
+        /* HACK */
+        wcscpy(szNameBuffer, L"c_1252.nls");
     }
 
     /* load ANSI codepage table */
@@ -288,8 +291,11 @@ FrLdrLoadNlsFiles(PCHAR szSystemRoot,
     rc = RegQueryValue(hKey, szIdBuffer, NULL, (PUCHAR)szNameBuffer, &BufferSize);
     if (rc != ERROR_SUCCESS) {
 
-        strcpy(szErrorOut, "OEMCP NLS setting exists, but isn't readable");
-        return(FALSE);
+        //strcpy(szErrorOut, "OEMCP NLS setting exists, but isn't readable");
+        //return(FALSE);
+
+        /* HACK */
+        wcscpy(szNameBuffer, L"c_437.nls");
     }
 
     /* load OEM codepage table */