Dmitry Timoshkov : windowscodecs: Simplify the buffer size check in copy_pixels() helper.