1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-22 04:20:07 +00:00

Fixed -Wzero-as-null-pointer-constant warning

This commit is contained in:
Chuck Walbourn 2019-10-17 12:14:39 -07:00
parent 4e14f7a5e2
commit 47c4031975

View File

@ -1420,7 +1420,7 @@ HRESULT DirectX::LoadFromTGAFile(
// Handle optional TGA 2.0 footer
TGA_FOOTER footer = {};
if (SetFilePointer(hFile.get(), -static_cast<int>(sizeof(TGA_FOOTER)), 0, FILE_END) == INVALID_SET_FILE_POINTER)
if (SetFilePointer(hFile.get(), -static_cast<int>(sizeof(TGA_FOOTER)), nullptr, FILE_END) == INVALID_SET_FILE_POINTER)
{
return HRESULT_FROM_WIN32(GetLastError());
}