From: Corinna Vinschen Date: Thu, 3 Dec 2009 11:27:50 +0000 (+0000) Subject: * main.cc (WinMain): Disable running on Windows 9x. Show message box X-Git-Tag: release_2.869~226 X-Git-Url: https://cygwin.com/git/?a=commitdiff_plain;h=a5405502b36d7062d2617ee744d21fa103cd4255;p=cygwin-apps%2Fsetup.git * main.cc (WinMain): Disable running on Windows 9x. Show message box instead and exit. --- diff --git a/ChangeLog b/ChangeLog index de66cfaf..014ecd00 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-12-03 Corinna Vinschen + + * main.cc (WinMain): Disable running on Windows 9x. Show message box + instead and exit. + 2009-12-03 Dave Korn (ChooserPage::createListview): When nothing is found in the "All" diff --git a/main.cc b/main.cc index 5cd6e9c8..9c69e9f5 100644 --- a/main.cc +++ b/main.cc @@ -230,6 +230,18 @@ main (int argc, char **argv) snprintf(locale, sizeof locale, ".%u", GetACP()); setlocale(LC_ALL, locale); + if (!IsWindowsNT ()) + { + MessageBox (NULL, + "Cygwin 1.7 and later does not run on Windows 95,\n" + "Windows 98, or Windows Me. If you want to install Cygwin\n" + "on one of these systems, please install an older version.\n" + "See http://cygwin.com/ for more information.", + "Unsupported Version of Windows detected", + MB_OK | MB_ICONSTOP | MB_SETFOREGROUND | MB_TOPMOST); + return 1; + } + try { char cwd[MAX_PATH]; GetCurrentDirectory (MAX_PATH, cwd);