summaryrefslogtreecommitdiff
path: root/win/Leocad.cpp
diff options
context:
space:
mode:
authorleo2005-10-23 00:05:36 +0000
committerleo2005-10-23 00:05:36 +0000
commit3f27dc27753aa9abe673d5514864374ed2abf93a (patch)
treee389770fc8c6ba47856b8005e79c80778766e6ba /win/Leocad.cpp
parent71f2a7f2e11c98fbec71646a600962cee0c974d1 (diff)
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
Diffstat (limited to 'win/Leocad.cpp')
-rw-r--r--win/Leocad.cpp8
1 files changed, 4 insertions, 4 deletions
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);