From 45b0e1644d8f1812d4b6391a7cefedc9f4d44c6d Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Fri, 23 Sep 2016 18:34:56 +0200 Subject: [PATCH] Windows: don't display a dialog when FTP transfer fails Close #17014 --- bin/winvlc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/winvlc.c b/bin/winvlc.c index 33784e294d..e221b2e4b3 100644 --- a/bin/winvlc.c +++ b/bin/winvlc.c @@ -246,10 +246,8 @@ static void check_crashdump(void) 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 the data to the FTP server.\n"\ - "Thanks a lot for the help.", - L"Report sending failed", MB_OK); + fprintf(stderr,"Couldn't send report to FTP server"); + InternetCloseHandle(ftp); } else