The added tests shows that when boundsInBlocks parameter is NULL, stride parameter will be checked to ensure it is bigger or equal to frame stride, but it will be ignored in the call. This can be proved by:
* CopyBlocks(NULL, frame_stride - 1, sizeof(buffer), buffer) return error. * CopyBlocks(NULL, frame_stride, sizeof(buffer), buffer) and CopyBlocks(NULL, frame_stride * 2, sizeof(buffer), buffer) works fine and result in same buffer content.
Signed-off-by: Ziqing Hui zhui@codeweavers.com --- dlls/windowscodecs/tests/ddsformat.c | 37 ++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 7 deletions(-)