win, is version equal or greater, build number

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-11-20 10:28:57 +08:00
parent 85ddfc0739
commit 5649fcc9ca

View File

@ -660,13 +660,14 @@ extern "C"
/* Initialize the condition mask. */ /* Initialize the condition mask. */
VER_SET_CONDITION(condition_mask, VER_MAJORVERSION, op); VER_SET_CONDITION(condition_mask, VER_MAJORVERSION, op);
VER_SET_CONDITION(condition_mask, VER_MINORVERSION, op); VER_SET_CONDITION(condition_mask, VER_MINORVERSION, op);
VER_SET_CONDITION(condition_mask, VER_BUILDNUMBER, op);
VER_SET_CONDITION(condition_mask, VER_SERVICEPACKMAJOR, op); VER_SET_CONDITION(condition_mask, VER_SERVICEPACKMAJOR, op);
VER_SET_CONDITION(condition_mask, VER_SERVICEPACKMINOR, op); VER_SET_CONDITION(condition_mask, VER_SERVICEPACKMINOR, op);
/* Perform the test. */ /* Perform the test. */
return VerifyVersionInfo( return VerifyVersionInfo(
&osvi, &osvi,
VER_MAJORVERSION | VER_MINORVERSION | VER_MAJORVERSION | VER_MINORVERSION | VER_BUILDNUMBER |
VER_SERVICEPACKMAJOR | VER_SERVICEPACKMINOR, VER_SERVICEPACKMAJOR | VER_SERVICEPACKMINOR,
condition_mask); condition_mask);
} }