]> git.cworth.org Git - apitrace/blobdiff - retrace/retrace_swizzle.cpp
d3dretrace: Force DWM traces to run on a window.
[apitrace] / retrace / retrace_swizzle.cpp
index b487de184a994cdd9c9bfbec01364704d13a80ef..2045f6bb7c83eafe5e71cca35141ce19080e7a1a 100644 (file)
@@ -259,7 +259,9 @@ addObj(trace::Call &call, trace::Value &value, void *obj) {
     unsigned long long address = value.toUIntPtr();
 
     if (!address) {
-        assert(!obj);
+        if (obj) {
+            warning(call) << "unexpected non-null object\n";
+        }
         return;
     }