Commit 762e639
committed
Allow keeping bool return values
PyMI contains a workaround to avoid returning boolean values for
void MI functions, mostly in an attempt to remain compatible with
other WMI libraries.
The problem is that we're losing boolean return values. We could
just drop the workaround and let PyMI return boolean values even
for void functions, however that might break some applications.
Instead, we'll add an optional argument called
"keep_bool_ret_vals", which can explicitly request the boolean
return values to be preserved.1 parent c6a9502 commit 762e639
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
| 684 | + | |
684 | 685 | | |
685 | 686 | | |
686 | 687 | | |
| |||
710 | 711 | | |
711 | 712 | | |
712 | 713 | | |
713 | | - | |
| 714 | + | |
| 715 | + | |
714 | 716 | | |
715 | 717 | | |
716 | 718 | | |
| |||
0 commit comments