Fixed issue with Debug builds for Metro style apps

This commit is contained in:
walbourn_cp 2012-05-02 15:28:14 -07:00
Родитель 062a8f4de3
Коммит 807899c4ae
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -1391,7 +1391,7 @@ HRESULT CreateDDSTextureFromFile( _In_ ID3D11Device* d3dDevice,
if (texture != 0 && *texture != 0)
{
(*texture)->SetPrivateData( WKPDID_D3DDebugObjectName,
lstrlenA(pstrName),
strnlen_s(pstrName, MAX_PATH),
pstrName
);
}
@ -1399,7 +1399,7 @@ HRESULT CreateDDSTextureFromFile( _In_ ID3D11Device* d3dDevice,
if (textureView != 0 && *textureView != 0 )
{
(*textureView)->SetPrivateData( WKPDID_D3DDebugObjectName,
lstrlenA(pstrName),
strnlen_s(pstrName, MAX_PATH),
pstrName
);
}

Просмотреть файл

@ -669,7 +669,7 @@ HRESULT CreateWICTextureFromFile( _In_ ID3D11Device* d3dDevice,
if (texture != 0 && *texture != 0)
{
(*texture)->SetPrivateData( WKPDID_D3DDebugObjectName,
lstrlenA(pstrName),
strnlen_s(pstrName, MAX_PATH),
pstrName
);
}
@ -677,7 +677,7 @@ HRESULT CreateWICTextureFromFile( _In_ ID3D11Device* d3dDevice,
if (textureView != 0 && *textureView != 0 )
{
(*textureView)->SetPrivateData( WKPDID_D3DDebugObjectName,
lstrlenA(pstrName),
strnlen_s(pstrName, MAX_PATH),
pstrName
);
}