[PATCH 2/2] user32: add tests for valid cbSize in GetMonitorInfoA
Bruno Jesus
00cpxxx at gmail.com
Fri Apr 18 09:18:29 CDT 2014
On Fri, Apr 18, 2014 at 8:52 AM, <siro at das-labor.org> wrote:
> should I iterate over all possible values other than sizeof(MONITORINFO) and sizeof(MONITORINFOEXA) ?
> Kind Regards,
> Patrick Rudolph
This is what I would do:
Try to test sizeof(mi)+1, sizeof(mi)-1, -1, 0, 0xdeadbeef (and the
same for miex). Memset(0) the structure before each test and choose a
field that should never be zero to test if the struct was correctly
filled aside from the success return value.
Best Regards,
Bruno
More information about the wine-devel
mailing list