windowscodecs: Avoid implicit cast changing value.
commit013f54af1f721dce651c85f87a5339ba3cb9d4a1
authorAlistair Leslie-Hughes <leslie_alistair@hotmail.com>
Wed, 1 May 2024 23:55:01 +0000 (2 09:55 +1000)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 2 May 2024 20:03:15 +0000 (2 22:03 +0200)
treee3ca6fc33d01bb43135a408cb356f0e8aa9490a5
parent4ae893e2f005e0915be480075feaecc0ccec8d8f
windowscodecs: Avoid implicit cast changing value.

This appear to be introduced with commit 12f73ed9d851.

When This->stride is negative (bottom up image) it converts the multiplication to an UINT.
Thus causing the pointer to be incorrect when y > 0.
dlls/windowscodecs/bmpdecode.c
dlls/windowscodecs/wincodecs_common.h