Skip to content

Commit

Permalink
Merge pull request #113 from skaytsner/master
Browse files Browse the repository at this point in the history
fix error reported in #88 & introduced by the fix for #65
  • Loading branch information
cfarrow authored Feb 17, 2017
2 parents d3fbdd0 + 7d66f3e commit 0158d7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions comtypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,8 +655,10 @@ def call_with_inout(self_, *args, **kw):
rescode = func(self_, *args, **kw)
# If there is only a single output value, then do not expect it to
# be iterable.
if len(outargs) == 1: # rescode is not iterable
return rescode.__ctypes_from_outparam__()
if outnum == 1: # rescode is not iterable
if len(outargs) == 1:
rescode = rescode.__ctypes_from_outparam__()
return rescode

rescode = list(rescode)
for outnum, o in outargs.items():
Expand Down

0 comments on commit 0158d7f

Please sign in to comment.