mirror of
https://github.com/reactos/reactos.git
synced 2025-06-20 07:36:05 +00:00
[PSDK][CRT] Add some casts to make GCC 8 happy
This commit is contained in:
parent
846cd55294
commit
48f3efa254
2 changed files with 5 additions and 5 deletions
|
@ -485,7 +485,7 @@ inline _variant_t::_variant_t(VARIANT &varSrc,bool fCopy) {
|
|||
::VariantInit(this);
|
||||
_com_util::CheckError(::VariantCopy(this,&varSrc));
|
||||
} else {
|
||||
_COM_MEMCPY_S(this,sizeof(varSrc),&varSrc,sizeof(varSrc));
|
||||
_COM_MEMCPY_S(static_cast<void*>(this),sizeof(varSrc),&varSrc,sizeof(varSrc));
|
||||
V_VT(&varSrc) = VT_EMPTY;
|
||||
}
|
||||
}
|
||||
|
@ -1149,7 +1149,7 @@ inline void _variant_t::Attach(VARIANT &varSrc)
|
|||
|
||||
Clear();
|
||||
|
||||
_COM_MEMCPY_S(this,sizeof(varSrc),&varSrc,sizeof(varSrc));
|
||||
_COM_MEMCPY_S(static_cast<void*>(this),sizeof(varSrc),&varSrc,sizeof(varSrc));
|
||||
V_VT(&varSrc) = VT_EMPTY;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue