Fixed PVS Studio V549 warning

This commit is contained in:
Chuck Walbourn 2020-06-12 19:44:06 -07:00
parent 80853b7771
commit 741870f834

View File

@ -1018,7 +1018,7 @@ HRESULT DirectX::SaveDDSTextureToFile(
uint8_t* dptr = pixels.get();
size_t msize = std::min<size_t>(rowPitch, rowPitch);
size_t msize = std::min<size_t>(rowPitch, dstRowPitch);
for (size_t h = 0; h < rowCount; ++h)
{
memcpy_s(dptr, rowPitch, sptr, msize);