diff --git a/DirectXTex/DirectXTexTGA.cpp b/DirectXTex/DirectXTexTGA.cpp index 82f1d19..c0e02c8 100644 --- a/DirectXTex/DirectXTexTGA.cpp +++ b/DirectXTex/DirectXTexTGA.cpp @@ -1420,7 +1420,7 @@ HRESULT DirectX::LoadFromTGAFile( // Handle optional TGA 2.0 footer TGA_FOOTER footer = {}; - if (SetFilePointer(hFile.get(), -static_cast(sizeof(TGA_FOOTER)), 0, FILE_END) == INVALID_SET_FILE_POINTER) + if (SetFilePointer(hFile.get(), -static_cast(sizeof(TGA_FOOTER)), nullptr, FILE_END) == INVALID_SET_FILE_POINTER) { return HRESULT_FROM_WIN32(GetLastError()); }