From 3f27dc27753aa9abe673d5514864374ed2abf93a Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 23 Oct 2005 00:05:36 +0000 Subject: Only show error messages when checking for new versions from the menu. git-svn-id: http://svn.leocad.org/trunk@429 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/Leocad.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'win/Leocad.cpp') diff --git a/win/Leocad.cpp b/win/Leocad.cpp index 8633e43..7f2dd5b 100644 --- a/win/Leocad.cpp +++ b/win/Leocad.cpp @@ -50,7 +50,7 @@ void wprintf(char *fmt, ...) } #endif -// If Data is NULL this function won't display a message if there are no updates. +// If Data is NULL this function will only display a message if there are updates. static void CheckForUpdates(void* Data) { HINTERNET session = InternetOpen("LeoCAD", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0) ; @@ -111,15 +111,15 @@ static void CheckForUpdates(void* Data) AfxMessageBox(str, MB_OK | MB_ICONINFORMATION); } } - else + else if (Data != NULL) AfxMessageBox("Unknown file information."); } InternetCloseHandle(hHttpFile); } - else + else if (Data != NULL) AfxMessageBox("Could not connect."); } - else + else if (Data != NULL) AfxMessageBox("Could not connect."); InternetCloseHandle(session); -- cgit v1.2.3