ole32: Remove redundant NULL check (Coverity).
This commit is contained in:
parent
cfdd3349f8
commit
fb2a3914e1
|
@ -2562,15 +2562,7 @@ BSTR WINAPI PropSysAllocString(LPCOLESTR str)
|
|||
*/
|
||||
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.
|
||||
*/
|
||||
if (str != 0)
|
||||
memcpy(newBuffer, str, bufferSize);
|
||||
else
|
||||
memset(newBuffer, 0, bufferSize);
|
||||
memcpy(newBuffer, str, bufferSize);
|
||||
|
||||
/*
|
||||
* Make sure that there is a nul character at the end of the
|
||||
|
|
Loading…
Reference in New Issue