[SHELLFIND] Use assignment instead of memcpy

This commit is contained in:
Brock Mammen 2019-08-23 16:13:23 -05:00 committed by Giannis Adamopoulos
parent 3b9508e98f
commit 8aa063b451
2 changed files with 2 additions and 2 deletions

View file

@ -609,6 +609,6 @@ STDMETHODIMP CFindFolder::GetClassID(CLSID *pClassId)
{
if (pClassId == NULL)
return E_INVALIDARG;
memcpy(pClassId, &CLSID_FindFolder, sizeof(CLSID));
*pClassId = CLSID_FindFolder;
return S_OK;
}

View file

@ -471,7 +471,7 @@ HRESULT STDMETHODCALLTYPE CSearchBar::GetClassID(CLSID *pClassID)
{
if (!pClassID)
return E_POINTER;
memcpy(pClassID, &CLSID_FileSearchBand, sizeof(CLSID));
*pClassID = CLSID_FileSearchBand;
return S_OK;
}