[vlc-commits] Win32: more dialogs when submitting the bug reports

Jean-Baptiste Kempf git at videolan.org
Fri May 20 00:57:53 CEST 2011


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu May 19 23:42:34 2011 +0200| [40af2135a11880fcd3f6e74d5251e86cf32d91d2] | committer: Jean-Baptiste Kempf

Win32: more dialogs when submitting the bug reports

Close #4798
(cherry picked from commit f84dd14d1d66bef0b82acf65a5808e50e7801445)
(cherry picked from commit 30b2de492e4e0922fe069682cb94ae5eaa9d55c1)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=40af2135a11880fcd3f6e74d5251e86cf32d91d2
---

 bin/winvlc.c |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/bin/winvlc.c b/bin/winvlc.c
index 8b47155..3dfd7f9 100644
--- a/bin/winvlc.c
+++ b/bin/winvlc.c
@@ -249,13 +249,30 @@ static void check_crashdump()
                     swprintf( remote_file, L"/crashes-win32/%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 error while transferring to the FTP server. "\
+                                    "Thanks a lot for the help anyway.",
+                                    L"Report sending failed", MB_OK);
                     InternetCloseHandle(ftp);
                 }
                 else
+                {
+                    MessageBox( NULL, L"There was an error while connecting to the FTP server. "\
+                                    "Thanks a lot for the help anyway.",
+                                    L"Report sending failed", MB_OK);
                     fprintf(stderr,"Can't connect to FTP server%d\n",GetLastError());
+                }
                 InternetCloseHandle(Hint);
             }
+            else
+            {
+                  MessageBox( NULL, L"There was an error while connecting to Internet. "\
+                                    "Thanks a lot for the help anyway.",
+                                    L"Reporting sending failed", MB_OK);
+            }
         }
 
         _wremove(wdir);



More information about the vlc-commits mailing list