"Lei Zhang" <thestig(a)google.com> writes:
> +
> + {
> + OSVERSIONINFOEX foo;
> + BOOL r;
> + memset(&foo, 0, sizeof(foo));
> + foo.dwOSVersionInfoSize = sizeof(foo);
> + r = GetVersionEx((OSVERSIONINFO *) &foo);
> + if (!r)
> + {
> + skip("could not get windows version\n");
> + return;
> + }
> +
> + is_sp1 = -1;
> + if (foo.dwMajorVersion > 5)
> + is_sp1 = 1;
> + else if (foo.dwMajorVersion == 5)
> + {
> + if (foo.dwMinorVersion > 1)
> + is_sp1 = 1;
> + else if (foo.dwMinorVersion == 1)
> + {
> + if (foo.wServicePackMajor > 1)
> + is_sp1 = 1;
> + else if (foo.wServicePackMajor == 1)
> + is_sp1 = 0;
> + }
> + }
Please don't add version checks in tests.
--
Alexandre Julliard
julliard(a)winehq.org