Commit 6f0e67fb authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: better uploading messages for crashes

parent ebf818aa
...@@ -170,8 +170,8 @@ static void check_crashdump(void) ...@@ -170,8 +170,8 @@ static void check_crashdump(void)
return; return;
fclose( fd ); fclose( fd );
int answer = MessageBox( NULL, L"VLC media player just crashed." \ int answer = MessageBox( NULL, L"Ooops: VLC media player just crashed.\n" \
" Do you want to send a bug report to the developers team?", "Would you like to send a bug report to the developers team?",
L"VLC crash reporting", MB_YESNO); L"VLC crash reporting", MB_YESNO);
if(answer == IDYES) if(answer == IDYES)
...@@ -195,20 +195,20 @@ static void check_crashdump(void) ...@@ -195,20 +195,20 @@ static void check_crashdump(void)
if( FtpPutFile( ftp, crashdump_path, remote_file, if( FtpPutFile( ftp, crashdump_path, remote_file,
FTP_TRANSFER_TYPE_BINARY, 0) ) FTP_TRANSFER_TYPE_BINARY, 0) )
MessageBox( NULL, L"Report sent correctly. Thanks a lot \ MessageBox( NULL, L"Report sent correctly. Thanks a lot " \
for the help.", L"Report sent", MB_OK); "for the help.", L"Report sent", MB_OK);
else else
MessageBox( NULL, L"There was an error while \ MessageBox( NULL, L"There was an error while "\
transferring to the FTP server. "\ "transferring the data to the FTP server.\n"\
"Thanks a lot for the help anyway.", "Thanks a lot for the help.",
L"Report sending failed", MB_OK); L"Report sending failed", MB_OK);
InternetCloseHandle(ftp); InternetCloseHandle(ftp);
} }
else else
{ {
MessageBox( NULL, L"There was an error while connecting to \ MessageBox( NULL, L"There was an error while connecting to " \
the FTP server. "\ "the FTP server. "\
"Thanks a lot for the help anyway.", "Thanks a lot for the help.",
L"Report sending failed", MB_OK); L"Report sending failed", MB_OK);
fprintf(stderr,"Can't connect to FTP server 0x%08lu\n", fprintf(stderr,"Can't connect to FTP server 0x%08lu\n",
(unsigned long)GetLastError()); (unsigned long)GetLastError());
...@@ -217,8 +217,7 @@ static void check_crashdump(void) ...@@ -217,8 +217,7 @@ static void check_crashdump(void)
} }
else else
{ {
MessageBox( NULL, L"There was an error while connecting to the \ MessageBox( NULL, L"There was an error while connecting to the Internet.\n"\
Internet. "\
"Thanks a lot for the help anyway.", "Thanks a lot for the help anyway.",
L"Report sending failed", MB_OK); L"Report sending failed", MB_OK);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment