ole32: Remove dead code in errorinfo.c (Coverity).
This commit is contained in:
parent
9719b45bb2
commit
6a355aec1b
|
@ -83,14 +83,10 @@ static BSTR WINAPI ERRORINFO_SysAllocString(const OLECHAR* in)
|
||||||
newBuffer++;
|
newBuffer++;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copy the information in the buffer.
|
* Copy the information in the buffer. It is not possible to pass
|
||||||
* Since it is valid to pass a NULL pointer here, we'll initialize the
|
* a NULL pointer here.
|
||||||
* buffer to nul if it is the case.
|
|
||||||
*/
|
*/
|
||||||
if (in != 0)
|
memcpy(newBuffer, in, bufferSize);
|
||||||
memcpy(newBuffer, in, bufferSize);
|
|
||||||
else
|
|
||||||
memset(newBuffer, 0, bufferSize);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Make sure that there is a nul character at the end of the
|
* Make sure that there is a nul character at the end of the
|
||||||
|
|
Loading…
Reference in New Issue