ADO pipeline changes for OpenSSF Best Practices (#477)

This commit is contained in:
Chuck Walbourn
2024-05-17 16:56:19 -07:00
committed by GitHub
parent 5cf134c714
commit 68e726aefc
11 changed files with 1677 additions and 184 deletions

View File

@@ -1786,29 +1786,19 @@ namespace
);
if (result > 0)
{
const char* pstrName = strrchr(strFileA, '\\');
if (!pstrName)
{
pstrName = strFileA;
}
else
{
pstrName++;
}
if (texture && *texture)
{
(*texture)->SetPrivateData(WKPDID_D3DDebugObjectName,
static_cast<UINT>(strnlen_s(pstrName, MAX_PATH)),
pstrName
static_cast<UINT>(result),
strFileA
);
}
if (textureView && *textureView)
{
(*textureView)->SetPrivateData(WKPDID_D3DDebugObjectName,
static_cast<UINT>(strnlen_s(pstrName, MAX_PATH)),
pstrName
static_cast<UINT>(result),
strFileA
);
}
}