Skip to content

Commit

Permalink
Fixed issue with Debug builds for Metro style apps
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn_cp authored and walbourn_cp committed May 2, 2012
1 parent 062a8f4 commit 807899c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Src/DDSTextureLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1391,15 +1391,15 @@ HRESULT CreateDDSTextureFromFile( _In_ ID3D11Device* d3dDevice,
if (texture != 0 && *texture != 0)
{
(*texture)->SetPrivateData( WKPDID_D3DDebugObjectName,
lstrlenA(pstrName),
strnlen_s(pstrName, MAX_PATH),
pstrName
);
}

if (textureView != 0 && *textureView != 0 )
{
(*textureView)->SetPrivateData( WKPDID_D3DDebugObjectName,
lstrlenA(pstrName),
strnlen_s(pstrName, MAX_PATH),
pstrName
);
}
Expand Down
4 changes: 2 additions & 2 deletions Src/WICTextureLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,15 +669,15 @@ HRESULT CreateWICTextureFromFile( _In_ ID3D11Device* d3dDevice,
if (texture != 0 && *texture != 0)
{
(*texture)->SetPrivateData( WKPDID_D3DDebugObjectName,
lstrlenA(pstrName),
strnlen_s(pstrName, MAX_PATH),
pstrName
);
}

if (textureView != 0 && *textureView != 0 )
{
(*textureView)->SetPrivateData( WKPDID_D3DDebugObjectName,
lstrlenA(pstrName),
strnlen_s(pstrName, MAX_PATH),
pstrName
);
}
Expand Down

0 comments on commit 807899c

Please sign in to comment.