The GetObjectA API incorrectly calculates bitmap strides. The stride should be a multiple of 4. Note that the underlying ...

The GetObjectA API incorrectly calculates bitmap strides. The stride should be a multiple of 4. Note that the underlying bitmap or dibsection object is stored correctly, but the GetObject calculation is wrong. This compatibility fix is for Windows 2000-specific applications only.