[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15691] branches/soc-2008-quorn/intern/ ghost/intern/GHOST_SystemWin32.cpp: Bugfix: Pasting non-text data ( or trying to retrieve non-text data from the clipboard) crashed blender on Windows.
Ian Thompson
quornian at googlemail.com
Tue Jul 22 16:56:03 CEST 2008
Revision: 15691
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15691
Author: quorn
Date: 2008-07-22 16:56:02 +0200 (Tue, 22 Jul 2008)
Log Message:
-----------
Bugfix: Pasting non-text data (or trying to retrieve non-text data from the clipboard) crashed blender on Windows.
Modified Paths:
--------------
branches/soc-2008-quorn/intern/ghost/intern/GHOST_SystemWin32.cpp
Modified: branches/soc-2008-quorn/intern/ghost/intern/GHOST_SystemWin32.cpp
===================================================================
--- branches/soc-2008-quorn/intern/ghost/intern/GHOST_SystemWin32.cpp 2008-07-22 14:33:10 UTC (rev 15690)
+++ branches/soc-2008-quorn/intern/ghost/intern/GHOST_SystemWin32.cpp 2008-07-22 14:56:02 UTC (rev 15691)
@@ -919,6 +919,8 @@
if ( OpenClipboard(NULL) ) {
HANDLE hData = GetClipboardData( CF_TEXT );
+ if (hData == NULL)
+ return NULL;
buffer = (char*)GlobalLock( hData );
temp_buff = (char*) malloc(strlen(buffer)+1);
More information about the Bf-blender-cvs
mailing list