Another fix attempt that appears to work

I have no idea why this works. Everything should already be single threaded
since it is run through the mainfunc channel. However, maybe there is some
implementation detail on the Windows platform that allocates the same
memory in a function call, and this is causing corruption. For some reason
locking the entire runQuery function works. Note, though, that putting the
locks *inside* the function itself doesn't work, but I'm not sure why.
1 file changed
tree: 24f5ece44b7f45bae5e894f6d317c43675c6ffb6
  1. LICENSE
  2. README.md
  3. wmi.go
  4. wmi_test.go
README.md

wmi

WMI interface for Go with a database/sql interface