Author: rnaumann
Date: Fri Mar 4 16:10:26 2016
New Revision: 70915
URL:
http://svn.reactos.org/svn/reactos?rev=70915&view=rev
Log:
[RAPPS] Display error messages on download failures. Patch by toe_head2001. Thank you!
Modified:
trunk/reactos/base/applications/rapps/lang/bg-BG.rc
trunk/reactos/base/applications/rapps/lang/cs-CZ.rc
trunk/reactos/base/applications/rapps/lang/de-DE.rc
trunk/reactos/base/applications/rapps/lang/en-US.rc
trunk/reactos/base/applications/rapps/lang/es-ES.rc
trunk/reactos/base/applications/rapps/lang/fr-FR.rc
trunk/reactos/base/applications/rapps/lang/he-IL.rc
trunk/reactos/base/applications/rapps/lang/it-IT.rc
trunk/reactos/base/applications/rapps/lang/ja-JP.rc
trunk/reactos/base/applications/rapps/lang/no-NO.rc
trunk/reactos/base/applications/rapps/lang/pl-PL.rc
trunk/reactos/base/applications/rapps/lang/pt-BR.rc
trunk/reactos/base/applications/rapps/lang/ro-RO.rc
trunk/reactos/base/applications/rapps/lang/ru-RU.rc
trunk/reactos/base/applications/rapps/lang/sk-SK.rc
trunk/reactos/base/applications/rapps/lang/sq-AL.rc
trunk/reactos/base/applications/rapps/lang/sv-SE.rc
trunk/reactos/base/applications/rapps/lang/tr-TR.rc
trunk/reactos/base/applications/rapps/lang/uk-UA.rc
trunk/reactos/base/applications/rapps/lang/zh-CN.rc
trunk/reactos/base/applications/rapps/lang/zh-TW.rc
trunk/reactos/base/applications/rapps/loaddlg.c
trunk/reactos/base/applications/rapps/resource.h
Modified: trunk/reactos/base/applications/rapps/lang/bg-BG.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/bg-BG.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/bg-BG.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -204,4 +204,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/cs-CZ.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/cs-CZ.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/cs-CZ.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -205,4 +205,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/de-DE.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/de-DE.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -200,4 +200,6 @@
IDS_CERT_DOES_NOT_MATCH "Ãberprüfung des SSL-Zertifikats
fehlgeschlagen."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/en-US.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/en-US.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -200,4 +200,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/es-ES.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/es-ES.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/es-ES.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -203,4 +203,6 @@
IDS_CERT_DOES_NOT_MATCH "Ha fallado la comprobación del certificado SSL."
IDS_INTEG_CHECK_TITLE "Verificando integridad del paquete..."
IDS_INTEG_CHECK_FAIL "El paquete no ha pasado la comprobación de integridad,
puede haber sido alterado o estar corrupto. No se recomienda ejecutarlo."
-END
+ IDS_INTERRUPTED_DOWNLOAD "Se ha interrumpido la descarga por un error de red.
Comprueba la conexión a Internet."
+ IDS_UNABLE_TO_WRITE "No se ha podido escribir en el disco duro, es posible que
no quede espacio libre."
+END
Modified: trunk/reactos/base/applications/rapps/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/fr-FR.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/fr-FR.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -200,4 +200,6 @@
IDS_CERT_DOES_NOT_MATCH "La vérification du certificat SSL a échoué."
IDS_INTEG_CHECK_TITLE "Vérification de l'intégrité du paquet..."
IDS_INTEG_CHECK_FAIL "Le contrôle d'intégrité du paquet a échoué, il se
peut qu'il ait été corrompu ou altéré au cours du téléchargement.
L'exécution du programme n'est pas recommandée."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/he-IL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/he-IL.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/he-IL.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -202,4 +202,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/it-IT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/it-IT.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/it-IT.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -200,4 +200,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/ja-JP.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/ja-JP.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/ja-JP.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -200,4 +200,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/no-NO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/no-NO.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/no-NO.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -200,4 +200,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/pl-PL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/pl-PL.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/pl-PL.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -208,4 +208,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/pt-BR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/pt-BR.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/pt-BR.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -202,4 +202,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/ro-RO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/ro-RO.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/ro-RO.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -206,4 +206,6 @@
IDS_CERT_DOES_NOT_MATCH "Verificarea certificatului SSL a eÈuat."
IDS_INTEG_CHECK_TITLE "Se verificÄ integritatea pachetuluiâ¦"
IDS_INTEG_CHECK_FAIL "Pachetul nu a trecut de verificarea de integritate.
Utilizarea programului nu este recomandatÄ."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/ru-RU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/ru-RU.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/ru-RU.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -200,4 +200,6 @@
IDS_CERT_DOES_NOT_MATCH "ÐÑибка пÑовеÑки SSL
ÑеÑÑиÑикаÑа."
IDS_INTEG_CHECK_TITLE "ÐÑовеÑка ÑелоÑÑноÑÑи
пÑиложениÑ..."
IDS_INTEG_CHECK_FAIL "ÐÑиложение не пÑоÑло пÑовеÑкÑ
ÑелоÑÑноÑÑи, возможно оно бÑло повÑеждено или
подменено. ÐапÑÑк пÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð½Ðµ
ÑекомендÑеÑÑÑ."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/sk-SK.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/sk-SK.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/sk-SK.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -205,4 +205,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/sq-AL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/sq-AL.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/sq-AL.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -204,4 +204,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/sv-SE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/sv-SE.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/sv-SE.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -207,4 +207,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/tr-TR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/tr-TR.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/tr-TR.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -202,4 +202,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL onay belgesi doÄrulaması baÅarısız."
IDS_INTEG_CHECK_TITLE "Paket bütünlüÄü doÄrulanıyor..."
IDS_INTEG_CHECK_FAIL "Paket bütünlük denetimini geçmedi, bozulmuŠveyâ
indirme esnâsında oynanmıŠolabilir. Yazılımı çalıÅtırmak önerilmez."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/uk-UA.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/uk-UA.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/uk-UA.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -208,4 +208,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/zh-CN.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/zh-CN.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/zh-CN.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -203,4 +203,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have
been corrupted or tampered with during downloading. Running the software is not
recommended."
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/lang/zh-TW.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/la…
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/zh-TW.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/zh-TW.rc [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -202,4 +202,6 @@
IDS_CERT_DOES_NOT_MATCH "SSL æèé©è失æã"
IDS_INTEG_CHECK_TITLE "é©èå¥è£è»é«çå®æ´æ§..."
IDS_INTEG_CHECK_FAIL "å
æ²æééå®æ´æ§æª¢æ¥ï¼å®å¯è½å·²æå£ï¼æè
å¨ä¸è¼éç¨ä¸ç¯¡æ¹ã建è°æ¨ä¸è¦éè¡è©²è»é«ã"
-END
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to
Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
+END
Modified: trunk/reactos/base/applications/rapps/loaddlg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/lo…
==============================================================================
--- trunk/reactos/base/applications/rapps/loaddlg.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/loaddlg.c [iso-8859-1] Fri Mar 4 16:10:26 2016
@@ -458,8 +458,26 @@
do
{
- if (!InternetReadFile(hFile, lpBuffer, _countof(lpBuffer), &dwBytesRead))
goto end;
- if (!WriteFile(hOut, &lpBuffer[0], dwBytesRead, &dwBytesWritten, NULL))
goto end;
+ if (!InternetReadFile(hFile, lpBuffer, _countof(lpBuffer), &dwBytesRead))
+ {
+ WCHAR szMsgText[MAX_STR_LEN];
+
+ if (!LoadStringW(hInst, IDS_INTERRUPTED_DOWNLOAD, szMsgText,
_countof(szMsgText)))
+ goto end;
+
+ MessageBoxW(hMainWnd, szMsgText, NULL, MB_OK | MB_ICONERROR);
+ goto end;
+ }
+ if (!WriteFile(hOut, &lpBuffer[0], dwBytesRead, &dwBytesWritten, NULL))
+ {
+ WCHAR szMsgText[MAX_STR_LEN];
+
+ if (!LoadStringW(hInst, IDS_UNABLE_TO_WRITE, szMsgText,
_countof(szMsgText)))
+ goto end;
+
+ MessageBoxW(hMainWnd, szMsgText, NULL, MB_OK | MB_ICONERROR);
+ goto end;
+ }
dwCurrentBytesRead += dwBytesRead;
IBindStatusCallback_OnProgress(dl, dwCurrentBytesRead, dwContentLen, 0,
AppInfo->szUrlDownload);
}
Modified: trunk/reactos/base/applications/rapps/resource.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/re…
==============================================================================
--- trunk/reactos/base/applications/rapps/resource.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/resource.h [iso-8859-1] Fri Mar 4 16:10:26
2016
@@ -99,6 +99,8 @@
#define IDS_CERT_DOES_NOT_MATCH 120
#define IDS_INTEG_CHECK_TITLE 121
#define IDS_INTEG_CHECK_FAIL 122
+#define IDS_INTERRUPTED_DOWNLOAD 123
+#define IDS_UNABLE_TO_WRITE 124
/* Tooltips */
#define IDS_TOOLTIP_INSTALL 200