Dmitry Timoshkov <dmitry(a)baikal.ru> writes:
> +static void test_VirtualProtect(void)
> +{
> + static const struct test_data
> + {
> + DWORD prot_set, prot_get;
> + } td[] =
> + {
> + { PAGE_NOACCESS, PAGE_NOACCESS },
> + { PAGE_READONLY, PAGE_READONLY },
> + { PAGE_READWRITE, PAGE_READWRITE },
> + { PAGE_WRITECOPY, 0 },
> + { PAGE_EXECUTE, PAGE_EXECUTE },
> + { PAGE_EXECUTE_READ, PAGE_EXECUTE_READ },
> + { PAGE_EXECUTE_READWRITE, PAGE_EXECUTE_READWRITE },
> + { PAGE_EXECUTE_WRITECOPY, 0 }
You should also test various invalid combinations.
--
Alexandre Julliard
julliard(a)winehq.org