diff --git a/Src/ModelLoadCMO.cpp b/Src/ModelLoadCMO.cpp index b537871b..961c3132 100644 --- a/Src/ModelLoadCMO.cpp +++ b/Src/ModelLoadCMO.cpp @@ -375,7 +375,7 @@ std::unique_ptr DirectX::Model::CreateFromCMO( if (dataSize < usedSize) throw std::runtime_error("End of file"); - auto meshName = reinterpret_cast(static_cast(meshData + usedSize)); + auto meshName = reinterpret_cast(static_cast(meshData + usedSize)); // [CodeQL.SM02986]: The cast here is intentional. usedSize += sizeof(wchar_t)*(*nName); if (dataSize < usedSize) @@ -404,7 +404,7 @@ std::unique_ptr DirectX::Model::CreateFromCMO( if (dataSize < usedSize) throw std::runtime_error("End of file"); - auto matName = reinterpret_cast(static_cast(meshData + usedSize)); + auto matName = reinterpret_cast(static_cast(meshData + usedSize)); // [CodeQL.SM02986]: The cast here is intentional. usedSize += sizeof(wchar_t)*(*nName); if (dataSize < usedSize) @@ -426,7 +426,7 @@ std::unique_ptr DirectX::Model::CreateFromCMO( if (dataSize < usedSize) throw std::runtime_error("End of file"); - auto psName = reinterpret_cast(static_cast(meshData + usedSize)); + auto psName = reinterpret_cast(static_cast(meshData + usedSize)); // [CodeQL.SM02986]: The cast here is intentional. usedSize += sizeof(wchar_t)*(*nName); if (dataSize < usedSize) @@ -441,7 +441,7 @@ std::unique_ptr DirectX::Model::CreateFromCMO( if (dataSize < usedSize) throw std::runtime_error("End of file"); - auto txtName = reinterpret_cast(static_cast(meshData + usedSize)); + auto txtName = reinterpret_cast(static_cast(meshData + usedSize)); // [CodeQL.SM02986]: The cast here is intentional. usedSize += sizeof(wchar_t)*(*nName); if (dataSize < usedSize) @@ -665,7 +665,7 @@ std::unique_ptr DirectX::Model::CreateFromCMO( if (dataSize < usedSize) throw std::runtime_error("End of file"); - auto boneName = reinterpret_cast(static_cast(meshData + usedSize)); + auto boneName = reinterpret_cast(static_cast(meshData + usedSize)); // [CodeQL.SM02986]: The cast here is intentional. usedSize += sizeof(wchar_t) * (*nName); if (dataSize < usedSize)