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 Mar 30, 2021
1 parent 1a938d3 commit c15043c
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 @@ -121,6 +121,8 @@ def _GetDescInvokeType(entry, invoke_type):
# BUT - it's apparently important for an INVKIND, and working that out is TBD!
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 entry.desc.desckind == pythoncom.DESCKIND_VARDESC and varkind == pythoncom.VAR_DISPATCH and invoke_type == pythoncom.INVOKE_PROPERTYPUT:
return pythoncom.INVOKE_PROPERTYPUT
else:
return varkind

Expand Down

0 comments on commit c15043c

Please sign in to comment.