]> git.sesse.net Git - vlc/commitdiff
Win32: more dialogs when submitting the bug reports
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 19 May 2011 21:42:34 +0000 (23:42 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 19 May 2011 21:44:10 +0000 (23:44 +0200)
Close #4798

bin/winvlc.c

index 0c6c29ecdd3487a69a2c418dbbf8c816d4b2fe79..4017ddd6514701478bf46ae0324bf34f5190984e 100644 (file)
@@ -236,13 +236,25 @@ static void check_crashdump()
                     swprintf( remote_file, L"/crashs/%04d%02d%02d%02d%02d%02d",now.wYear,
                             now.wMonth, now.wDay, now.wHour, now.wMinute, now.wSecond  );
 
-                    FtpPutFile( ftp, wdir, remote_file, FTP_TRANSFER_TYPE_BINARY, 0);
+                    if( FtpPutFile( ftp, wdir, remote_file, FTP_TRANSFER_TYPE_BINARY, 0) )
+                        MessageBox( NULL, L"Report sent correctly. Thanks a lot for the help.",
+                                    L"Report sent", MB_OK);
+                    else
+                        MessageBox( NULL, L"There was an issue while transferring to the FTP server. "\
+                                    "Thanks a lot for the help anyway.",
+                                    L"Report sent", MB_OK);
                     InternetCloseHandle(ftp);
                 }
                 else
                     fprintf(stderr,"Can't connect to FTP server%d\n",GetLastError());
                 InternetCloseHandle(Hint);
             }
+            else
+            {
+                  MessageBox( NULL, L"There was an issue while connecting to Internet. "\
+                                    "Thanks a lot for the help anyway.",
+                                    L"Report sent", MB_OK);
+            }
         }
 
         _wremove(wdir);