Skip to content

Commit

Permalink
Fix dynamic property put.
Browse files Browse the repository at this point in the history
  • Loading branch information
dankob00 committed Dec 14, 2020
1 parent 09c57bf commit c7bb898
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions com/win32com/client/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def _GetDescInvokeType(entry, invoke_type):
varkind = entry.desc[4] # from VARDESC struct returned by ITypeComp::Bind
if varkind == pythoncom.VAR_DISPATCH and invoke_type == pythoncom.INVOKE_PROPERTYGET:
return pythoncom.INVOKE_FUNC | invoke_type # DISPATCH_METHOD & DISPATCH_PROPERTYGET can be combined in IDispatch::Invoke
elif varkind == pythoncom.VAR_DISPATCH and invoke_type == pythoncom.INVOKE_PROPERTYPUT:
return pythoncom.INVOKE_PROPERTYPUT
else:
return varkind

Expand Down

0 comments on commit c7bb898

Please sign in to comment.