Skip to content

Commit

Permalink
fix error reported in #88 & introduced by the fix for #65
Browse files Browse the repository at this point in the history
  • Loading branch information
skaytsner committed Feb 15, 2017
1 parent d3fbdd0 commit 7d66f3e
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 7d66f3e

Please sign in to comment.