[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/bindings/kimono
From:       Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date:       2005-12-31 20:41:52
Message-ID: 1136061712.576037.12991.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 492975 by rdale:

* The 'char *' from C# string marshaller wasn't checking for a null value



 M  +5 -1      qt3handlers.cpp  


--- trunk/playground/bindings/kimono/qt3handlers.cpp #492974:492975
@@ -536,7 +536,11 @@
 	switch(m->action()) {
 	case Marshall::FromObject:
 	{
-		m->item().s_voidp = (*IntPtrToCharStar)(m->var().s_class);
+		if (m->var().s_class == 0) {
+			m->item().s_voidp = 0;
+		} else {
+			m->item().s_voidp = (*IntPtrToCharStar)(m->var().s_class);
+		}
 	}
 	break;
 	case Marshall::ToObject:
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic