[SYSDM]
authorEric Kohl <eric.kohl@reactos.org>
Wed, 2 Jun 2010 22:29:19 +0000 (22:29 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Wed, 2 Jun 2010 22:29:19 +0000 (22:29 +0000)
- Fix a bug in the creation of the 'PagingFiles' registry value.
- Set paging file sizes only if both user defined sizes are valid numerical values and display a warning otherwise.
- Translators: Please translate the message strings!

svn path=/trunk/; revision=47525

23 files changed:
reactos/dll/cpl/sysdm/lang/bg-BG.rc
reactos/dll/cpl/sysdm/lang/cs-CZ.rc
reactos/dll/cpl/sysdm/lang/da-DK.rc
reactos/dll/cpl/sysdm/lang/de-DE.rc
reactos/dll/cpl/sysdm/lang/el-GR.rc
reactos/dll/cpl/sysdm/lang/en-US.rc
reactos/dll/cpl/sysdm/lang/es-ES.rc
reactos/dll/cpl/sysdm/lang/fr-FR.rc
reactos/dll/cpl/sysdm/lang/hu-HU.rc
reactos/dll/cpl/sysdm/lang/id-ID.rc
reactos/dll/cpl/sysdm/lang/it-IT.rc
reactos/dll/cpl/sysdm/lang/ja-JP.rc
reactos/dll/cpl/sysdm/lang/nl-NL.rc
reactos/dll/cpl/sysdm/lang/no-NO.rc
reactos/dll/cpl/sysdm/lang/pl-PL.rc
reactos/dll/cpl/sysdm/lang/ro-RO.rc
reactos/dll/cpl/sysdm/lang/ru-RU.rc
reactos/dll/cpl/sysdm/lang/sk-SK.rc
reactos/dll/cpl/sysdm/lang/sv-SE.rc
reactos/dll/cpl/sysdm/lang/uk-UA.rc
reactos/dll/cpl/sysdm/lang/zh-CN.rc
reactos/dll/cpl/sysdm/resource.h
reactos/dll/cpl/sysdm/virtmem.c

index cd0cca3..f12c3be 100644 (file)
@@ -284,4 +284,7 @@ BEGIN
     IDS_USERPROFILE_TYPE "Âèä"
     IDS_USERPROFILE_STATUS "Ñúñòîÿíèå"
     IDS_USERPROFILE_MODIFIED "Èçìåíåí"
     IDS_USERPROFILE_TYPE "Âèä"
     IDS_USERPROFILE_STATUS "Ñúñòîÿíèå"
     IDS_USERPROFILE_MODIFIED "Èçìåíåí"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index 5be033c..4672cff 100644 (file)
@@ -289,4 +289,7 @@ BEGIN
     IDS_USERPROFILE_TYPE "Typ"
     IDS_USERPROFILE_STATUS "Status"
     IDS_USERPROFILE_MODIFIED "Upraveno"
     IDS_USERPROFILE_TYPE "Typ"
     IDS_USERPROFILE_STATUS "Status"
     IDS_USERPROFILE_MODIFIED "Upraveno"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index 4e680cb..b4e1f31 100644 (file)
@@ -123,4 +123,7 @@ BEGIN
     IDS_MINI_DUMP "Minidump(64KB)"
     IDS_KERNEL_DUMP "Kernel dump"
     IDS_FULL_DUMP "Complete dump"
     IDS_MINI_DUMP "Minidump(64KB)"
     IDS_KERNEL_DUMP "Kernel dump"
     IDS_FULL_DUMP "Complete dump"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index 9228224..5239386 100644 (file)
@@ -289,5 +289,8 @@ BEGIN
     IDS_USERPROFILE_TYPE "Typ"
     IDS_USERPROFILE_STATUS "Status"
     IDS_USERPROFILE_MODIFIED "Geändert"
     IDS_USERPROFILE_TYPE "Typ"
     IDS_USERPROFILE_STATUS "Status"
     IDS_USERPROFILE_MODIFIED "Geändert"
+    IDS_MESSAGEBOXTITLE "Systemsteuerungsoption ""System"""
+    IDS_WARNINITIALSIZE "Geben Sie einen numerischen Wert für die Anfangsgröße der Auslagerungsdatei an."
+    IDS_WARNMAXIMUMSIZE "Geben Sie einen numerischen Wert für die Maximalgröße der Auslagerungsdatei an."
     IDS_DEVS "\nReactOS Team\n\nProjektkoordinator\n\nAleksey Bragin\n\nEntwicklerteam\n\nAleksey Bragin\nAndrew Greenwood\nAndrey Korotaev\nArt Yerkes\nChristoph von Wittich\nColin Finck\nDaniel Reimer\nDmitry Chapyshev\nEric Kohl\nGed Murphy\nGregor Brunmar\nHervé Poussineau\nJames Tabor\nJeffrey Morlan\nJohannes Anderwald\nKJK::Hyperion\nMaarten Bosma\nMagnus Olsen\nMarc Piulachs\nMatthias Kupfer\nMike Nordell\nPeter Ward\nPierre Schweitzer\nSaveliy Tretiakov\nStefan Ginsberg\nSylvain Petreolle\nThomas Blümel\nTimo Kreuzer \n\nAlex Ionescu\nFilip Navara\nGunnar Dalsnes\nMartin Fuchs\nRoyce Mitchell III\nBrandon Turner\nBrian Palmer\nCasper Hornstrup\nDavid Welch\nEmanuele Aliberti\nGé van Geldorp\nGregor Anich\nJason Filby\nJens Collin\nMichael Wirth\nNathan Woods\nRobert Dickenson\nRex Jolliff\nVizzini \n\nRelease Verantwortliche\n\nColin Finck\nZ98\n\nWebseitenteam\n\nColin Finck\nJaix Bly\nKlemens Friedl\nZ98\n\nMedienteam\n\nMindflyer\nWierd_W\n\nweiterer Dank geht an\n\nalle Mitwirkenden\nWine Team\n\n"
 END
     IDS_DEVS "\nReactOS Team\n\nProjektkoordinator\n\nAleksey Bragin\n\nEntwicklerteam\n\nAleksey Bragin\nAndrew Greenwood\nAndrey Korotaev\nArt Yerkes\nChristoph von Wittich\nColin Finck\nDaniel Reimer\nDmitry Chapyshev\nEric Kohl\nGed Murphy\nGregor Brunmar\nHervé Poussineau\nJames Tabor\nJeffrey Morlan\nJohannes Anderwald\nKJK::Hyperion\nMaarten Bosma\nMagnus Olsen\nMarc Piulachs\nMatthias Kupfer\nMike Nordell\nPeter Ward\nPierre Schweitzer\nSaveliy Tretiakov\nStefan Ginsberg\nSylvain Petreolle\nThomas Blümel\nTimo Kreuzer \n\nAlex Ionescu\nFilip Navara\nGunnar Dalsnes\nMartin Fuchs\nRoyce Mitchell III\nBrandon Turner\nBrian Palmer\nCasper Hornstrup\nDavid Welch\nEmanuele Aliberti\nGé van Geldorp\nGregor Anich\nJason Filby\nJens Collin\nMichael Wirth\nNathan Woods\nRobert Dickenson\nRex Jolliff\nVizzini \n\nRelease Verantwortliche\n\nColin Finck\nZ98\n\nWebseitenteam\n\nColin Finck\nJaix Bly\nKlemens Friedl\nZ98\n\nMedienteam\n\nMindflyer\nWierd_W\n\nweiterer Dank geht an\n\nalle Mitwirkenden\nWine Team\n\n"
 END
index 98ff694..909769d 100644 (file)
@@ -285,4 +285,7 @@ BEGIN
     IDS_USERPROFILE_TYPE "Ôýðïò"
     IDS_USERPROFILE_STATUS "ÊáôÜóôáóç"
     IDS_USERPROFILE_MODIFIED "ÔñïðïðïéÞèçêå"
     IDS_USERPROFILE_TYPE "Ôýðïò"
     IDS_USERPROFILE_STATUS "ÊáôÜóôáóç"
     IDS_USERPROFILE_MODIFIED "ÔñïðïðïéÞèçêå"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index 73b8a17..d0f971c 100644 (file)
@@ -284,5 +284,8 @@ BEGIN
     IDS_USERPROFILE_TYPE "Type"
     IDS_USERPROFILE_STATUS "Status"
     IDS_USERPROFILE_MODIFIED "Modified"
     IDS_USERPROFILE_TYPE "Type"
     IDS_USERPROFILE_STATUS "Status"
     IDS_USERPROFILE_MODIFIED "Modified"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
     IDS_DEVS "\nReactOS Team\n\nProject Coordinator\n\nAleksey Bragin\n\nDevelopment Team\n\nAleksey Bragin\nAndrew Greenwood\nAndrey Korotaev\nArt Yerkes\nChristoph von Wittich\nColin Finck\nDaniel Reimer\nDmitry Chapyshev\nEric Kohl\nGed Murphy\nGregor Brunmar\nHervé Poussineau\nJames Tabor\nJeffrey Morlan\nJohannes Anderwald\nKJK::Hyperion\nMaarten Bosma\nMagnus Olsen\nMarc Piulachs\nMatthias Kupfer\nMike Nordell\nPeter Ward\nPierre Schweitzer\nSaveliy Tretiakov\nStefan Ginsberg\nSylvain Petreolle\nThomas Blümel\nTimo Kreuzer \n\nAlex Ionescu\nFilip Navara\nGunnar Dalsnes\nMartin Fuchs\nRoyce Mitchell III\nBrandon Turner\nBrian Palmer\nCasper Hornstrup\nDavid Welch\nEmanuele Aliberti\nGé van Geldorp\nGregor Anich\nJason Filby\nJens Collin\nMichael Wirth\nNathan Woods\nRobert Dickenson\nRex Jolliff\nVizzini \n\nRelease Engineers\n\nColin Finck\nZ98\n\nWebsite Team\n\nColin Finck\nJaix Bly\nKlemens Friedl\nZ98\n\nMedia Team\n\nMindflyer\nWierd_W\n\nfurther thanks go to\n\nall Contributers\nWine Team\n\n"
 END
     IDS_DEVS "\nReactOS Team\n\nProject Coordinator\n\nAleksey Bragin\n\nDevelopment Team\n\nAleksey Bragin\nAndrew Greenwood\nAndrey Korotaev\nArt Yerkes\nChristoph von Wittich\nColin Finck\nDaniel Reimer\nDmitry Chapyshev\nEric Kohl\nGed Murphy\nGregor Brunmar\nHervé Poussineau\nJames Tabor\nJeffrey Morlan\nJohannes Anderwald\nKJK::Hyperion\nMaarten Bosma\nMagnus Olsen\nMarc Piulachs\nMatthias Kupfer\nMike Nordell\nPeter Ward\nPierre Schweitzer\nSaveliy Tretiakov\nStefan Ginsberg\nSylvain Petreolle\nThomas Blümel\nTimo Kreuzer \n\nAlex Ionescu\nFilip Navara\nGunnar Dalsnes\nMartin Fuchs\nRoyce Mitchell III\nBrandon Turner\nBrian Palmer\nCasper Hornstrup\nDavid Welch\nEmanuele Aliberti\nGé van Geldorp\nGregor Anich\nJason Filby\nJens Collin\nMichael Wirth\nNathan Woods\nRobert Dickenson\nRex Jolliff\nVizzini \n\nRelease Engineers\n\nColin Finck\nZ98\n\nWebsite Team\n\nColin Finck\nJaix Bly\nKlemens Friedl\nZ98\n\nMedia Team\n\nMindflyer\nWierd_W\n\nfurther thanks go to\n\nall Contributers\nWine Team\n\n"
 END
index 69e46cf..e5d5005 100644 (file)
@@ -287,4 +287,7 @@ BEGIN
     IDS_USERPROFILE_TYPE "Tipo"
     IDS_USERPROFILE_STATUS "Estado"
     IDS_USERPROFILE_MODIFIED "Modificado"
     IDS_USERPROFILE_TYPE "Tipo"
     IDS_USERPROFILE_STATUS "Estado"
     IDS_USERPROFILE_MODIFIED "Modificado"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index e649b59..bce50f9 100644 (file)
@@ -287,4 +287,7 @@ BEGIN
     IDS_USERPROFILE_TYPE "Type"
     IDS_USERPROFILE_STATUS "Statut"
     IDS_USERPROFILE_MODIFIED "Modifié"
     IDS_USERPROFILE_TYPE "Type"
     IDS_USERPROFILE_STATUS "Statut"
     IDS_USERPROFILE_MODIFIED "Modifié"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index 9b3a462..09bd09d 100644 (file)
@@ -126,4 +126,7 @@ BEGIN
     IDS_MINI_DUMP "Minidump(64KB)"
     IDS_KERNEL_DUMP "Kernel dump"
     IDS_FULL_DUMP "Complete dump"
     IDS_MINI_DUMP "Minidump(64KB)"
     IDS_KERNEL_DUMP "Kernel dump"
     IDS_FULL_DUMP "Complete dump"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index 1025b1f..ad67a22 100644 (file)
@@ -281,4 +281,7 @@ BEGIN
     IDS_USERPROFILE_TYPE "Type"
     IDS_USERPROFILE_STATUS "Status"
     IDS_USERPROFILE_MODIFIED "Modified"
     IDS_USERPROFILE_TYPE "Type"
     IDS_USERPROFILE_STATUS "Status"
     IDS_USERPROFILE_MODIFIED "Modified"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index 253a4bd..876a945 100644 (file)
@@ -284,5 +284,8 @@ BEGIN
     IDS_USERPROFILE_TYPE "Tipo"
     IDS_USERPROFILE_STATUS "Stato"
     IDS_USERPROFILE_MODIFIED "Modificato"
     IDS_USERPROFILE_TYPE "Tipo"
     IDS_USERPROFILE_STATUS "Stato"
     IDS_USERPROFILE_MODIFIED "Modificato"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
     IDS_DEVS "\nReactOS Team\n\nCoordinatore\n\nAleksey Bragin\n\nGruppo di sviluppo\n\nAleksey Bragin\nAndrew Greenwood\nAndrey Korotaev\nArt Yerkes\nChristoph von Wittich\nColin Finck\nDaniel Reimer\nDmitry Chapyshev\nEric Kohl\nGed Murphy\nGregor Brunmar\nHervé Poussineau\nJames Tabor\nJeffrey Morlan\nJohannes Anderwald\nKJK::Hyperion\nMaarten Bosma\nMagnus Olsen\nMarc Piulachs\nMatthias Kupfer\nMike Nordell\nPeter Ward\nPierre Schweitzer\nSaveliy Tretiakov\nStefan Ginsberg\nSylvain Petreolle\nThomas Blümel\nTimo Kreuzer \n\nAlex Ionescu\nFilip Navara\nGunnar Dalsnes\nMartin Fuchs\nRoyce Mitchell III\nBrandon Turner\nBrian Palmer\nCasper Hornstrup\nDavid Welch\nEmanuele Aliberti\nGé van Geldorp\nGregor Anich\nJason Filby\nJens Collin\nMichael Wirth\nNathan Woods\nRobert Dickenson\nRex Jolliff\nVizzini \n\nRelease Engineers\n\nColin Finck\nZ98\n\nWebsite Team\n\nColin Finck\nJaix Bly\nKlemens Friedl\nZ98\n\nMedia Team\n\nMindflyer\nWierd_W\n\nUlteriori ringraziamenti\n\na tutti i Contributers\nWine Team\n\n"
 END
     IDS_DEVS "\nReactOS Team\n\nCoordinatore\n\nAleksey Bragin\n\nGruppo di sviluppo\n\nAleksey Bragin\nAndrew Greenwood\nAndrey Korotaev\nArt Yerkes\nChristoph von Wittich\nColin Finck\nDaniel Reimer\nDmitry Chapyshev\nEric Kohl\nGed Murphy\nGregor Brunmar\nHervé Poussineau\nJames Tabor\nJeffrey Morlan\nJohannes Anderwald\nKJK::Hyperion\nMaarten Bosma\nMagnus Olsen\nMarc Piulachs\nMatthias Kupfer\nMike Nordell\nPeter Ward\nPierre Schweitzer\nSaveliy Tretiakov\nStefan Ginsberg\nSylvain Petreolle\nThomas Blümel\nTimo Kreuzer \n\nAlex Ionescu\nFilip Navara\nGunnar Dalsnes\nMartin Fuchs\nRoyce Mitchell III\nBrandon Turner\nBrian Palmer\nCasper Hornstrup\nDavid Welch\nEmanuele Aliberti\nGé van Geldorp\nGregor Anich\nJason Filby\nJens Collin\nMichael Wirth\nNathan Woods\nRobert Dickenson\nRex Jolliff\nVizzini \n\nRelease Engineers\n\nColin Finck\nZ98\n\nWebsite Team\n\nColin Finck\nJaix Bly\nKlemens Friedl\nZ98\n\nMedia Team\n\nMindflyer\nWierd_W\n\nUlteriori ringraziamenti\n\na tutti i Contributers\nWine Team\n\n"
 END
index 2ce3b7c..e8fc614 100644 (file)
@@ -284,4 +284,7 @@ BEGIN
     IDS_USERPROFILE_TYPE "\8eí\97Þ"
     IDS_USERPROFILE_STATUS "\8fó\91Ô"
     IDS_USERPROFILE_MODIFIED "\95Ï\8dX\93ú"
     IDS_USERPROFILE_TYPE "\8eí\97Þ"
     IDS_USERPROFILE_STATUS "\8fó\91Ô"
     IDS_USERPROFILE_MODIFIED "\95Ï\8dX\93ú"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index 888857b..ccfc998 100644 (file)
@@ -125,5 +125,7 @@ BEGIN
     IDS_MINI_DUMP "Minidump(64KB)"
     IDS_KERNEL_DUMP "Kernel dump"
     IDS_FULL_DUMP "Complete dump"
     IDS_MINI_DUMP "Minidump(64KB)"
     IDS_KERNEL_DUMP "Kernel dump"
     IDS_FULL_DUMP "Complete dump"
-
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index 98beebe..b8d4e57 100644 (file)
@@ -283,4 +283,7 @@ BEGIN
     IDS_USERPROFILE_TYPE "Type"
     IDS_USERPROFILE_STATUS "Status"
     IDS_USERPROFILE_MODIFIED "Modifisert"
     IDS_USERPROFILE_TYPE "Type"
     IDS_USERPROFILE_STATUS "Status"
     IDS_USERPROFILE_MODIFIED "Modifisert"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index b138c0a..99bc477 100644 (file)
@@ -288,4 +288,7 @@ BEGIN
     IDS_USERPROFILE_TYPE "Typ"
     IDS_USERPROFILE_STATUS "Stan"
     IDS_USERPROFILE_MODIFIED "Zmodyfikowano"
     IDS_USERPROFILE_TYPE "Typ"
     IDS_USERPROFILE_STATUS "Stan"
     IDS_USERPROFILE_MODIFIED "Zmodyfikowano"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index 7e5de71..5262a8e 100644 (file)
@@ -1,4 +1,4 @@
-LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
+LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
 
 #pragma code_page(65001)
 
 
 #pragma code_page(65001)
 
@@ -284,6 +284,9 @@ BEGIN
     IDS_USERPROFILE_TYPE "Tip"
     IDS_USERPROFILE_STATUS "Stare"
     IDS_USERPROFILE_MODIFIED "Modificat"
     IDS_USERPROFILE_TYPE "Tip"
     IDS_USERPROFILE_STATUS "Stare"
     IDS_USERPROFILE_MODIFIED "Modificat"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 
 #pragma code_page(default)
 END
 
 #pragma code_page(default)
index caaef69..8a377e9 100644 (file)
@@ -282,4 +282,7 @@ BEGIN
     IDS_USERPROFILE_TYPE "Òèï"
     IDS_USERPROFILE_STATUS "Ñîñòîÿíèå"
     IDS_USERPROFILE_MODIFIED "Èçìåíåí"
     IDS_USERPROFILE_TYPE "Òèï"
     IDS_USERPROFILE_STATUS "Ñîñòîÿíèå"
     IDS_USERPROFILE_MODIFIED "Èçìåíåí"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index 82fbc60..9845921 100644 (file)
@@ -290,4 +290,7 @@ BEGIN
     IDS_USERPROFILE_TYPE "Typ"
     IDS_USERPROFILE_STATUS "Stav"
     IDS_USERPROFILE_MODIFIED "Modifikovaný"
     IDS_USERPROFILE_TYPE "Typ"
     IDS_USERPROFILE_STATUS "Stav"
     IDS_USERPROFILE_MODIFIED "Modifikovaný"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index c72592c..e394e7f 100644 (file)
@@ -284,4 +284,7 @@ BEGIN
     IDS_USERPROFILE_TYPE "Typ"
     IDS_USERPROFILE_STATUS "Status"
     IDS_USERPROFILE_MODIFIED "Ändrad"
     IDS_USERPROFILE_TYPE "Typ"
     IDS_USERPROFILE_STATUS "Status"
     IDS_USERPROFILE_MODIFIED "Ändrad"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index 651a167..e8951f4 100644 (file)
@@ -290,4 +290,7 @@ BEGIN
     IDS_USERPROFILE_TYPE "Òèï"
     IDS_USERPROFILE_STATUS "Ñòàí"
     IDS_USERPROFILE_MODIFIED "Çì³íåíî"
     IDS_USERPROFILE_TYPE "Òèï"
     IDS_USERPROFILE_STATUS "Ñòàí"
     IDS_USERPROFILE_MODIFIED "Çì³íåíî"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index 1abbce7..e3bda3c 100644 (file)
@@ -287,4 +287,7 @@ BEGIN
     IDS_USERPROFILE_TYPE "ÀàÐÍ"
     IDS_USERPROFILE_STATUS "״̬"
     IDS_USERPROFILE_MODIFIED "ÐÞ¸Ä"
     IDS_USERPROFILE_TYPE "ÀàÐÍ"
     IDS_USERPROFILE_STATUS "״̬"
     IDS_USERPROFILE_MODIFIED "ÐÞ¸Ä"
+    IDS_MESSAGEBOXTITLE "System control panel applet"
+    IDS_WARNINITIALSIZE "Enter a numeric value for the initial size of the paging file."
+    IDS_WARNMAXIMUMSIZE "Enter a numeric value for the maximum size of the paging file."
 END
 END
index f0918a3..10cd614 100644 (file)
@@ -32,6 +32,9 @@
 #define IDS_USERPROFILE_STATUS          75
 #define IDS_USERPROFILE_MODIFIED        76
 
 #define IDS_USERPROFILE_STATUS          75
 #define IDS_USERPROFILE_MODIFIED        76
 
+#define IDS_MESSAGEBOXTITLE             77
+#define IDS_WARNINITIALSIZE             78
+#define IDS_WARNMAXIMUMSIZE             79
 
 /* propsheet - general */
 #define IDD_PROPPAGEGENERAL             100
 
 /* propsheet - general */
 #define IDD_PROPPAGEGENERAL             100
index 6dcd9ad..5dc572c 100644 (file)
@@ -220,7 +220,7 @@ WritePageFileSettings(PVIRTMEM pVirtMem)
                       pVirtMem->Pagefile[i].MaxValue);
 
             /* Add it to our overall registry string */
                       pVirtMem->Pagefile[i].MaxValue);
 
             /* Add it to our overall registry string */
-            lstrcat(szPagingFiles + nPos, szText);
+            lstrcpy(szPagingFiles + nPos, szText);
 
             /* Record the position where the next string will start */
             nPos += (INT)lstrlen(szText) + 1;
 
             /* Record the position where the next string will start */
             nPos += (INT)lstrlen(szText) + 1;
@@ -299,8 +299,11 @@ static VOID
 OnSet(PVIRTMEM pVirtMem)
 {
     INT Index;
 OnSet(PVIRTMEM pVirtMem)
 {
     INT Index;
-    UINT Value;
+    UINT InitValue;
+    UINT MaxValue;
     BOOL bTranslated;
     BOOL bTranslated;
+    TCHAR szTitle[64];
+    TCHAR szMessage[256];
 
     pVirtMem->bSave = TRUE;
 
 
     pVirtMem->bSave = TRUE;
 
@@ -315,41 +318,61 @@ OnSet(PVIRTMEM pVirtMem)
         if (IsDlgButtonChecked(pVirtMem->hSelf,
                                IDC_CUSTOM) == BST_CHECKED)
         {
         if (IsDlgButtonChecked(pVirtMem->hSelf,
                                IDC_CUSTOM) == BST_CHECKED)
         {
-            Value = GetDlgItemInt(pVirtMem->hSelf,
-                                  IDC_INITIALSIZE,
-                                  &bTranslated,
-                                  FALSE);
+            InitValue = GetDlgItemInt(pVirtMem->hSelf,
+                                      IDC_INITIALSIZE,
+                                      &bTranslated,
+                                      FALSE);
             if (!bTranslated)
             {
             if (!bTranslated)
             {
-                /* FIXME: Show error message instead of setting the edit
-                          field to the previous value */
-                SetDlgItemInt(pVirtMem->hSelf,
-                              IDC_INITIALSIZE,
-                              pVirtMem->Pagefile[Index].InitialValue,
-                              FALSE);
-            }
-            else
-            {
-                pVirtMem->Pagefile[Index].InitialValue = Value;
+                if (LoadString(hApplet,
+                               IDS_MESSAGEBOXTITLE,
+                               szTitle,
+                               sizeof(szTitle) / sizeof(szTitle[0])) == 0)
+                    _tcscpy(szTitle, _T("System control panel applet"));
+
+                if (LoadString(hApplet,
+                               IDS_WARNINITIALSIZE,
+                               szMessage,
+                               sizeof(szMessage) / sizeof(szMessage[0])) == 0)
+                    _tcscpy(szMessage, _T("Enter a numeric value for the initial size of the paging file."));
+
+                MessageBox(NULL,
+                           szMessage,
+                           szTitle,
+                           MB_ICONWARNING | MB_OK);
+                return;
             }
 
             }
 
-            Value = GetDlgItemInt(pVirtMem->hSelf,
-                                  IDC_MAXSIZE,
-                                  &bTranslated,
-                                  FALSE);
+            MaxValue = GetDlgItemInt(pVirtMem->hSelf,
+                                     IDC_MAXSIZE,
+                                     &bTranslated,
+                                     FALSE);
             if (!bTranslated)
             {
             if (!bTranslated)
             {
-                /* FIXME: Show error message instead of setting the edit
-                          field to the previous value */
-                SetDlgItemInt(pVirtMem->hSelf,
-                              IDC_MAXSIZE,
-                              pVirtMem->Pagefile[Index].MaxValue,
-                              FALSE);
-            }
-            else
-            {
-                pVirtMem->Pagefile[Index].MaxValue = Value;
+                if (LoadString(hApplet,
+                               IDS_MESSAGEBOXTITLE,
+                               szTitle,
+                               sizeof(szTitle) / sizeof(szTitle[0])) == 0)
+                    _tcscpy(szTitle, _T("System control panel applet"));
+
+                if (LoadString(hApplet,
+                               IDS_WARNMAXIMUMSIZE,
+                               szMessage,
+                               sizeof(szMessage) / sizeof(szMessage[0])) == 0)
+                    _tcscpy(szMessage, _T("Enter a numeric value for the maximum size of the paging file."));
+
+                MessageBox(NULL,
+                           szMessage,
+                           szTitle,
+                           MB_ICONWARNING | MB_OK);
+                return;
             }
             }
+
+            /* FIXME: Add more file size checks! */
+
+            pVirtMem->Pagefile[Index].InitialValue = InitValue;
+            pVirtMem->Pagefile[Index].MaxValue = MaxValue;
+            pVirtMem->Pagefile[Index].bUsed = TRUE;
         }
         else
         {
         }
         else
         {