Commit 6a355aec authored by Jeff Latimer's avatar Jeff Latimer Committed by Alexandre Julliard

ole32: Remove dead code in errorinfo.c (Coverity).

parent 9719b45b
......@@ -83,14 +83,10 @@ static BSTR WINAPI ERRORINFO_SysAllocString(const OLECHAR* in)
newBuffer++;
/*
* Copy the information in the buffer.
* Since it is valid to pass a NULL pointer here, we'll initialize the
* buffer to nul if it is the case.
* Copy the information in the buffer. It is not possible to pass
* a NULL pointer here.
*/
if (in != 0)
memcpy(newBuffer, in, bufferSize);
else
memset(newBuffer, 0, bufferSize);
memcpy(newBuffer, in, bufferSize);
/*
* Make sure that there is a nul character at the end of the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment