Rob Shearman : widl: Don' t add NULL pointer checks in generated code for user types.

Alexandre Julliard julliard at winehq.org
Wed Dec 31 07:45:17 CST 2008


Module: wine
Branch: master
Commit: c6e7609b01858a46507ef9995bcffe00cd2d4c64
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c6e7609b01858a46507ef9995bcffe00cd2d4c64

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Tue Dec 30 18:48:43 2008 +0000

widl: Don't add NULL pointer checks in generated code for user types.

---

 tools/widl/proxy.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c
index 7bb6acd..5d4d2af 100644
--- a/tools/widl/proxy.c
+++ b/tools/widl/proxy.c
@@ -161,6 +161,9 @@ int cant_be_null(const var_t *v)
   if (is_aliaschain_attr(type, ATTR_CONTEXTHANDLE))
       return 0;
 
+  if (is_user_type(type))
+      return 0;
+
   if (! attrs && type)
   {
     attrs = type->attrs;




More information about the wine-cvs mailing list