Author: cwittich
Date: Sat Sep 20 09:55:49 2008
New Revision: 36353
URL: http://svn.reactos.org/svn/reactos?rev=36353&view=rev
Log:
replace \" with "" in rc files
fix non standard C code
Modified:
trunk/rosapps/applications/sysutils/systeminfo/lang/en-US.rc
trunk/rosapps/applications/sysutils/systeminfo/lang/es-ES.rc
trunk/rosapps/applications/sysutils/systeminfo/lang/fr-FR.rc
trunk/rosapps/applications/sysutils/systeminfo/lang/no-NO.rc
trunk/rosapps/applications/sysutils/systeminfo/lang/pl-PL.rc
trunk/rosapps/applications/sysutils/systeminfo/lang/sk-SK.rc
trunk/rosapps/applications/sysutils/systeminfo/lang/uk-UA.rc
trunk/rosapps/applications/sysutils/systeminfo/systeminfo.c
Modified: trunk/rosapps/applications/sysutils/systeminfo/lang/en-US.rc
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/syst…
==============================================================================
--- trunk/rosapps/applications/sysutils/systeminfo/lang/en-US.rc [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/systeminfo/lang/en-US.rc [iso-8859-1] Sat Sep 20 09:55:49 2008
@@ -15,10 +15,10 @@
user context. Prompts for input if omitted.\n\n\
/FO format Specifies the format in which the output\n\
is to be displayed.\n\
- Valid values: \"TABLE\", \"LIST\", \"CSV\".\n\n\
- /NH Specifies that the \"Column Header\" should\n\
+ Valid values: ""TABLE"", ""LIST"", ""CSV"".\n\n\
+ /NH Specifies that the ""Column Header"" should\n\
not be displayed in the output.\n\
- Valid only for \"TABLE\" and \"CSV\" formats.\n\n\
+ Valid only for ""TABLE"" and ""CSV"" formats.\n\n\
/? Displays this help/usage.\n\n\
Examples:\n\
SYSTEMINFO\n\
Modified: trunk/rosapps/applications/sysutils/systeminfo/lang/es-ES.rc
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/syst…
==============================================================================
--- trunk/rosapps/applications/sysutils/systeminfo/lang/es-ES.rc [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/systeminfo/lang/es-ES.rc [iso-8859-1] Sat Sep 20 09:55:49 2008
@@ -20,10 +20,10 @@
Pregunta por ella si es omitida.\n\n\
/FO formato Especifica el formato en el que la salida\n\
será mostrada.\n\
- Valores válidos: \"TABLE\", \"LIST\", \"CSV\".\n\n\
- /NH Especifica que la \"Columna cabezera\" no será\n\
+ Valores válidos: ""TABLE"", ""LIST"", ""CSV"".\n\n\
+ /NH Especifica que la ""Columna cabezera"" no será\n\
mostrada en la salida.\n\
- Válido sólo para formatos \"TABLE\" y \"CSV\" .\n\n\
+ Válido sólo para formatos ""TABLE"" y ""CSV"" .\n\n\
/? Muestra esta ayuda.\n\n\
Ejemplos:\n\
SYSTEMINFO\n\
Modified: trunk/rosapps/applications/sysutils/systeminfo/lang/fr-FR.rc
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/syst…
==============================================================================
--- trunk/rosapps/applications/sysutils/systeminfo/lang/fr-FR.rc [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/systeminfo/lang/fr-FR.rc [iso-8859-1] Sat Sep 20 09:55:49 2008
@@ -15,10 +15,10 @@
fourni. Le demande si ommis.\n\n\
/FO format Spécifie le format dans lequel la sortie\n\
doit être affichée.\n\
- Valeurs valides: \"TABLE\", \"LIST\", \"CSV\".\n\n\
- /NH Spécifie que \"L'entête de colonne\" ne doit\n\
+ Valeurs valides: ""TABLE"", ""LIST"", ""CSV"".\n\n\
+ /NH Spécifie que ""L'entête de colonne"" ne doit\n\
pas être affiché dans la sortie.\n\
- Valide uniquement pour les format \"TABLE\" et \"CSV\".\n\n\
+ Valide uniquement pour les format ""TABLE"" et ""CSV"".\n\n\
/? Affiche cette aide.\n\n\
Exemples:\n\
SYSTEMINFO\n\
Modified: trunk/rosapps/applications/sysutils/systeminfo/lang/no-NO.rc
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/syst…
==============================================================================
--- trunk/rosapps/applications/sysutils/systeminfo/lang/no-NO.rc [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/systeminfo/lang/no-NO.rc [iso-8859-1] Sat Sep 20 09:55:49 2008
@@ -15,10 +15,10 @@
bruker sammenheng. Prompts for input if omitted.\n\n\
/FO format Spesifisere formatet som i utgående\n\
som skal vises.\n\
- Gyldige verdier: \"TABLE\", \"LIST\", \"CSV\".\n\n\
- /NH Spesifisere at \"Column Header\" skal\n\
+ Gyldige verdier: ""TABLE"", ""LIST"", ""CSV"".\n\n\
+ /NH Spesifisere at ""Column Header"" skal\n\
ikke vises i utgående.\n\
- Gyldig for bare \"TABLE\" og \"CSV\" formater.\n\n\
+ Gyldig for bare ""TABLE"" og ""CSV"" formater.\n\n\
/? Vis denne hjelp/bruk meldingen.\n\n\
Eksempler:\n\
SYSTEMINFO\n\
Modified: trunk/rosapps/applications/sysutils/systeminfo/lang/pl-PL.rc
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/syst…
==============================================================================
--- trunk/rosapps/applications/sysutils/systeminfo/lang/pl-PL.rc [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/systeminfo/lang/pl-PL.rc [iso-8859-1] Sat Sep 20 09:55:49 2008
@@ -22,10 +22,10 @@
Program sam zapyta o has³o, jeli nie jest podane.\n\n\
/FO format Wyznacza format w którym wywietlone zostan¹\n\
informacje o systemie.\n\
- Dostêpne formaty: \"TABLE\", \"LIST\", \"CSV\".\n\n\
- /NH Blokuje wywietlanie kolumny \"Column Header\" w\n\
+ Dostêpne formaty: ""TABLE"", ""LIST"", ""CSV"".\n\n\
+ /NH Blokuje wywietlanie kolumny ""Column Header"" w\n\
informacjach systemowych.\n\
- Dzia³a tylko z formatami \"TABLE\" i \"CSV\".\n\n\
+ Dzia³a tylko z formatami ""TABLE"" i ""CSV"".\n\n\
/? Wywietla niniejszy tekst pomocy.\n\n\
Przyk³ady:\n\
SYSTEMINFO\n\
Modified: trunk/rosapps/applications/sysutils/systeminfo/lang/sk-SK.rc
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/syst…
==============================================================================
--- trunk/rosapps/applications/sysutils/systeminfo/lang/sk-SK.rc [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/systeminfo/lang/sk-SK.rc [iso-8859-1] Sat Sep 20 09:55:49 2008
@@ -19,10 +19,10 @@
user context. Prompts for input if omitted.\n\n\
/FO form t Specifies the format in which the output\n\
is to be displayed.\n\
- Valid values: \"TABLE\", \"LIST\", \"CSV\".\n\n\
- /NH Specifies that the \"Column Header\" should\n\
+ Valid values: ""TABLE"", ""LIST"", ""CSV"".\n\n\
+ /NH Specifies that the ""Column Header"" should\n\
not be displayed in the output.\n\
- Valid only for \"TABLE\" and \"CSV\" formats.\n\n\
+ Valid only for ""TABLE"" and ""CSV"" formats.\n\n\
/? Displays this help/usage.\n\n\
Examples:\n\
SYSTEMINFO\n\
Modified: trunk/rosapps/applications/sysutils/systeminfo/lang/uk-UA.rc
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/syst…
==============================================================================
--- trunk/rosapps/applications/sysutils/systeminfo/lang/uk-UA.rc [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/systeminfo/lang/uk-UA.rc [iso-8859-1] Sat Sep 20 09:55:49 2008
@@ -23,10 +23,10 @@
Çàïðîøóº ââåäåííÿ ïàðîëÿ, ÿêùî â³í íå çàäàíèé.\n\n\
/FO ôîðìàò Âèçíà÷ຠôîðìàò, â ÿêîìó â³äîáðàæàþòüñÿ\n\
âèõ³äí³ äàí³.\n\
- Äîïóñòèì³ ôîðìàòè: \"TABLE\", \"LIST\", \"CSV\".\n\n\
+ Äîïóñòèì³ ôîðìàòè: ""TABLE"", ""LIST"", ""CSV"".\n\n\
/NH Íå â³äîáðàæàòè çàãîëîâêè ñòîâïö³â\n\
âèõ³äíèõ äàíèõ.\n\
- Äîïóñêàºòüñÿ äëÿ ôîðìàò³â \"TABLE\" and \"CSV\".\n\n\
+ Äîïóñêàºòüñÿ äëÿ ôîðìàò³â ""TABLE"" and ""CSV"".\n\n\
/? Ïîêàçóº öþ äîâ³äêó.\n\n\
Ïðèêëàäè:\n\
SYSTEMINFO\n\
Modified: trunk/rosapps/applications/sysutils/systeminfo/systeminfo.c
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/syst…
==============================================================================
--- trunk/rosapps/applications/sysutils/systeminfo/systeminfo.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/systeminfo/systeminfo.c [iso-8859-1] Sat Sep 20 09:55:49 2008
@@ -86,6 +86,7 @@
TCHAR Buf[BUFFER_SIZE],Tmp[BUFFER_SIZE], Msg[BUFFER_SIZE];
MEMORYSTATUS memory;
unsigned int DIV = 1024;
+ TIME_ZONE_INFORMATION TimeZoneInfo;
GetSystemInfo(&SysInfo);
@@ -201,8 +202,8 @@
//getting Processor(s)
if(GetOemStrings(IDS_PROCESSORS,Msg))
{
+ unsigned int i;
fprintf(stderr,Msg,(unsigned int)SysInfo.dwNumberOfProcessors);
- unsigned int i;
for(i = 0; i < (unsigned int)SysInfo.dwNumberOfProcessors; i++)
{
sprintf(Tmp,"HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\%u",i);
@@ -275,7 +276,6 @@
}
//getting Time Zone
- TIME_ZONE_INFORMATION TimeZoneInfo;
GetTimeZoneInformation(&TimeZoneInfo);
sprintf(Tmp,"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones\\%S",TimeZoneInfo.StandardName);
if (GetRegistryValue(HKEY_LOCAL_MACHINE,