Cleanup: remove pointless strcpy return value check

This commit is contained in:
Campbell Barton 2022-08-31 16:12:24 +10:00
parent 70035e6473
commit a0ff2be199
1 changed files with 2 additions and 5 deletions

View File

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