Fix /analyze warning

This commit is contained in:
Chuck Walbourn 2018-07-02 16:46:28 -07:00
parent 3b13358138
commit 296120a763

View File

@ -782,7 +782,7 @@ HRESULT DirectX::CaptureTexture(
{
pData + pLayout[dindex].Offset,
static_cast<LONG_PTR>(pLayout[dindex].Footprint.RowPitch),
static_cast<LONG_PTR>(pLayout[dindex].Footprint.RowPitch * pNumRows[dindex])
static_cast<LONG_PTR>(pLayout[dindex].Footprint.RowPitch) * static_cast<LONG_PTR>(pNumRows[dindex])
};
if (pRowSizesInBytes[dindex] > SIZE_T(-1))