ole32: Remove redundant NULL check (Coverity).

This commit is contained in:
Kai Blin 2007-01-05 11:00:43 +01:00 committed by Alexandre Julliard
parent cfdd3349f8
commit fb2a3914e1
1 changed files with 1 additions and 9 deletions

View File

@ -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