Skip to content

Commit

Permalink
Fix multiple resource mappings causing a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Mar 16, 2021
1 parent 4f9af2c commit a2541a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions retrace/dxgiretrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit a2541a8

Please sign in to comment.