Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-08-31 09:12:24 +0300
committerCampbell Barton <campbell@blender.org>2022-08-31 09:12:24 +0300
commita0ff2be19991acdec5885b02fca0d937055d9d6c (patch)
tree024a5e87b6fac326670fb546a9bf48932fd8eaec
parent70035e64732415aee039196e81ab31554e5577b1 (diff)
Cleanup: remove pointless strcpy return value check
-rw-r--r--intern/ghost/intern/GHOST_DropTargetWin32.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/intern/ghost/intern/GHOST_DropTargetWin32.cpp b/intern/ghost/intern/GHOST_DropTargetWin32.cpp
index 2283cff3827..5ca48ee9cd5 100644
--- a/intern/ghost/intern/GHOST_DropTargetWin32.cpp
+++ b/intern/ghost/intern/GHOST_DropTargetWin32.cpp
@@ -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);