Error if download failed.

svn path=/trunk/; revision=25230
This commit is contained in:
Maarten Bosma 2006-12-25 19:25:27 +00:00
parent aa366332eb
commit 32bfd4a46f
4 changed files with 11 additions and 2 deletions

View file

@ -40,6 +40,7 @@
#include <debug.h>
extern struct Application* SelectedApplication;
extern WCHAR Strings [STRING_COUNT][MAX_STRING_LENGHT];
typedef struct _IBindStatusCallbackImpl
{
@ -250,7 +251,12 @@ ThreadFunc(LPVOID Context)
{
IBindStatusCallback_Release(dl);
}
if (S_OK != r || bCancelled )
if (S_OK != r)
{
MessageBoxW(0,Strings[IDS_DOWNLOAD_ERROR],0,0);
goto end;
}
else if (bCancelled)
{
goto end;
}

View file

@ -35,6 +35,7 @@
#define IDS_CHOOSE_BOTH 13
#define IDS_XMLERROR_1 14
#define IDS_XMLERROR_2 15
#define IDS_DOWNLOAD_ERROR 16
#define STRING_COUNT 15
#define STRING_COUNT 17
#define MAX_STRING_LENGHT 0x100

View file

@ -28,4 +28,5 @@ BEGIN
IDS_CHOOSE_BOTH "Bitte wählen Sie eine Unterkategorie oder eine Anwendung."
IDS_XMLERROR_1 "XML Datei nicht gefunden!"
IDS_XMLERROR_2 "XML Datei kann nicht verarbeitet werden!"
IDS_DOWNLOAD_ERROR "Die Datei konnte nicht runtergeladen werden.\nBitte prüfen sie, ob eine Verbindung zum Internet besteht."
END

View file

@ -28,4 +28,5 @@ BEGIN
IDS_CHOOSE_BOTH "Please choose a subcategory or an application."
IDS_XMLERROR_1 "Could not find the xml file !"
IDS_XMLERROR_2 "Could not parse the xml file !"
IDS_DOWNLOAD_ERROR "Unable to download the file.\nPlease check you internet connection."
END