cloudbase / PyMI

A blazing fast replacement for the Python WMI module
Apache License 2.0
21 stars 14 forks source link

wmi: Makes _get_method_params thread safe #5

Closed claudiubelu closed 8 years ago

claudiubelu commented 8 years ago

_get_method_params is supposed to return a unique Object in which a method's parameters are mapped. The issue is that it always returns the same object, which can be modified by multiple threads, leading to erroneous method calls.

Method now returns a cloned object.