Minor code review

This commit is contained in:
Chuck Walbourn 2018-10-10 15:31:00 -07:00
parent 2f731dbb0b
commit b207e278e7
2 changed files with 3 additions and 3 deletions

View File

@ -4358,8 +4358,8 @@ namespace
_Out_ WICPixelFormatGUID& pfGUID,
_Out_ WICPixelFormatGUID& targetGUID)
{
memcpy(&pfGUID, &GUID_NULL, sizeof(GUID));
memcpy(&targetGUID, &GUID_NULL, sizeof(GUID));
memset(&pfGUID, 0, sizeof(GUID));
memset(&targetGUID, 0, sizeof(GUID));
if (filter & TEX_FILTER_FORCE_NON_WIC)
{

View File

@ -197,7 +197,7 @@ bool DirectX::_DXGIToWIC(DXGI_FORMAT format, GUID& guid, bool ignoreRGBvsBGR)
break;
}
memcpy(&guid, &GUID_NULL, sizeof(GUID));
memset(&guid, 0, sizeof(GUID));
return false;
}