Cleanup: remove pointless strcpy return value check
This commit is contained in:
parent
70035e6473
commit
a0ff2be199
|
@ -288,11 +288,8 @@ void *GHOST_DropTargetWin32::getDropDataAsString(IDataObject *pDataObject)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (!::strcpy(tmp_string, str)) {
|
||||
::free(tmp_string);
|
||||
::GlobalUnlock(stgmed.hGlobal);
|
||||
return NULL;
|
||||
}
|
||||
::strcpy(tmp_string, str);
|
||||
|
||||
/* Free memory. */
|
||||
::GlobalUnlock(stgmed.hGlobal);
|
||||
::ReleaseStgMedium(&stgmed);
|
||||
|
|
Loading…
Reference in New Issue