Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct threading model used by wmi calls #8

Merged
merged 1 commit into from
Jun 8, 2016

Commits on May 26, 2016

  1. Correct threading model used by wmi calls

    WbemScripting is apartment threaded according to its registry entries
    so switch multi-threaded OLE to apartment threaded enabling the global
    lock to be removed.
    
    Correct missing CoUninitialize call when CoInitializeEx returns S_FALSE
    as documented here:
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms695279(v=vs.85).aspx
    
    Also:
    * Cleanup OleError checking in Query.
    * Handle nil return from CreateObject by returning ErrNilCreateObject
      before it causes a panic. This has been seen in rare cases in production
      when built under go v1.6.
    stevenh committed May 26, 2016
    Configuration menu
    Copy the full SHA
    e4adde3 View commit details
    Browse the repository at this point in the history