LCL, win32: make UpdateWindowsVersion detect Windows 8, patch by Tomasz Wieckowski, bug #25374

git-svn-id: trunk@43480 -
This commit is contained in:
maxim 2013-11-25 22:19:52 +00:00
parent 8c91bab6ee
commit faa6ee5f53

View File

@ -149,6 +149,7 @@ type
wvVista, wvVista,
//wvServer2008, // has the same major/minor as wvVista //wvServer2008, // has the same major/minor as wvVista
wv7, wv7,
wv8,
wvLater wvLater
); );
@ -1634,6 +1635,7 @@ begin
case Win32MinorVersion of case Win32MinorVersion of
0: WindowsVersion := wvVista; 0: WindowsVersion := wvVista;
1: WindowsVersion := wv7; 1: WindowsVersion := wv7;
2: WindowsVersion := wv8;
else else
WindowsVersion := wvLater; WindowsVersion := wvLater;
end; end;