From a2541a8ff7ba53e79439a3844ee09171a9a25a3a Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 16 Mar 2021 10:53:50 +0000 Subject: [PATCH] Fix multiple resource mappings causing a crash --- retrace/dxgiretrace.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/retrace/dxgiretrace.py b/retrace/dxgiretrace.py index 4629e7833..65931106c 100755 --- a/retrace/dxgiretrace.py +++ b/retrace/dxgiretrace.py @@ -548,6 +548,8 @@ def invokeInterfaceMethod(self, interface, method): print(' else') print(' _pbData = *ppData;') print(' _desc.RefCount++;') + print(' if (!ppData)') + print(' return;') else: print(' _MAP_DESC _MapDesc;') print(' _getMapDesc(_this, %s, _MapDesc);' % ', '.join(method.argNames()))