From c44c62c1040471f47960a639141e1692856f7b5b Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 22 Sep 2014 13:42:42 +0100 Subject: d3dretrace: Compact/cleanup private interface implementation. --- retrace/dxgiretrace.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'retrace/dxgiretrace.py') diff --git a/retrace/dxgiretrace.py b/retrace/dxgiretrace.py index 07302181..3f17a097 100755 --- a/retrace/dxgiretrace.py +++ b/retrace/dxgiretrace.py @@ -187,8 +187,7 @@ class D3DRetracer(Retracer): # intercept private interfaces if method.name == 'QueryInterface': - print r' _result = d3dretrace::QueryInterface(_this, riid, ppvObj);' - print r' if (FAILED(_result)) {' + print r' if (!d3dretrace::overrideQueryInterface(_this, riid, ppvObj, &_result)) {' Retracer.invokeInterfaceMethod(self, interface, method) print r' }' return -- cgit v1.2.3