]> git.cworth.org Git - apitrace/blobdiff - wrappers/trace.py
Move trace::findWrapper to trace_resource.cpp
[apitrace] / wrappers / trace.py
index 79156acafbd328086f6ea021c41bf5c64a8ce2d7..f1aaf82c67474ab8263c707b1fa8f0dc10aed11e 100644 (file)
@@ -208,7 +208,7 @@ class ValueSerializer(stdapi.Visitor, ExpanderMixin):
             # reinterpret_cast is necessary for GLubyte * <=> char *
             instance = 'reinterpret_cast<%s>(%s)' % (cast, instance)
         if string.length is not None:
-            length = ', %s' % string.length
+            length = ', %s' % self.expand(string.length)
         else:
             length = ''
         print '    trace::localWriter.write%s(%s%s);' % (suffix, instance, length)
@@ -541,7 +541,7 @@ class Tracer:
             return 'true'
         if str(function.type) == 'HRESULT':
             return 'SUCCEEDED(_result)'
-        return 'false'
+        return 'true'
 
     def serializeArg(self, function, arg):
         print '    trace::localWriter.beginArg(%u);' % (arg.index,)