]> cygwin.com Git - cygwin-apps/setup.git/commitdiff
* main.cc (WinMain): Disable running on Windows 9x. Show message box
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 3 Dec 2009 11:27:50 +0000 (11:27 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 3 Dec 2009 11:27:50 +0000 (11:27 +0000)
instead and exit.

ChangeLog
main.cc

index de66cfaf2dbbaca327ffa8b900d484f19a80eeb9..014ecd0085627d45fa02307aeb69cb9ee563280c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-03  Corinna Vinschen  <corinna@vinschen.de>
+
+       * main.cc (WinMain): Disable running on Windows 9x.  Show message box
+       instead and exit.
+
 2009-12-03  Dave Korn  <dave.korn.cygwin@gmail.com>
 
        (ChooserPage::createListview): When nothing is found in the "All"
diff --git a/main.cc b/main.cc
index 5cd6e9c850dfe383be0b93fa1552e2cb336ac86d..9c69e9f5f0b5d16b93b00d1e45cc143638c61d12 100644 (file)
--- 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);
This page took 0.039167 seconds and 5 git commands to generate.