]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Looks like Windows version 6.2 will be Windows 8
authorSebastian Hahn <sebastian@torproject.org>
Sat, 1 Oct 2011 12:44:39 +0000 (14:44 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Sat, 1 Oct 2011 12:50:44 +0000 (14:50 +0200)
Thanks to funkstar for the report

changes/windows_8 [new file with mode: 0644]
src/common/compat.c

diff --git a/changes/windows_8 b/changes/windows_8
new file mode 100644 (file)
index 0000000..405e4fa
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes:
+    - The next version of Windows will be called Windows 8, and it has a major
+      version of 6, minor version of 2. Correctly identify that version instead
+      of calling it "Very recent version". Fixes bug 4153; reported by funkstar.
+
index 80b4907b8101686c7dc25f640dc45a509924627c..266fc61c4c22d16ed6bb6fcb03991aef0dd84a03 100644 (file)
@@ -1806,6 +1806,7 @@ get_uname(void)
         static struct {
           unsigned major; unsigned minor; const char *version;
         } win_version_table[] = {
+          { 6, 2, "Windows 8" },
           { 6, 1, "Windows 7" },
           { 6, 0, "Windows Vista" },
           { 5, 2, "Windows Server 2003" },
@@ -1862,7 +1863,7 @@ get_uname(void)
                        plat, extra);
         } else {
           if (info.dwMajorVersion > 6 ||
-              (info.dwMajorVersion==6 && info.dwMinorVersion>1))
+              (info.dwMajorVersion==6 && info.dwMinorVersion>2))
             tor_snprintf(uname_result, sizeof(uname_result),
                       "Very recent version of Windows [major=%d,minor=%d] %s",
                       (int)info.dwMajorVersion,(int)info.dwMinorVersion,