Fix IoIsWdmVersionAvailable() to confirm we're compatible with Win2k (someone forgot 0x before 10) and also added brief comments on which version corresponds to what.

svn path=/trunk/; revision=19271
This commit is contained in:
Aleksey Bragin
2005-11-16 20:38:31 +00:00
parent d3ed470945
commit 76873f5ab1
+8 -1
View File
@@ -483,7 +483,14 @@ BOOLEAN STDCALL
IoIsWdmVersionAvailable(IN UCHAR MajorVersion,
IN UCHAR MinorVersion)
{
if (MajorVersion <= 1 && MinorVersion <= 10)
/* MinorVersion = 0x20 : WinXP
0x10 : Win2k
0x5 : WinMe
<0x5 : Win98
We report Win2k now
*/
if (MajorVersion <= 1 && MinorVersion <= 0x10)
return TRUE;
return FALSE;
}