Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Merge pending PRs #16

Merged
merged 3 commits into from
Jul 27, 2016
Merged

Merge pending PRs #16

merged 3 commits into from
Jul 27, 2016

Commits on Jun 16, 2016

  1. Use _NewEnum because SWbemObjectSet does not have ItemIndex on some s…

    …ystems (Win2003, WinXP).
    
    Closes issues #2, #10 and #12.
    SokoloffA committed Jun 16, 2016
    Configuration menu
    Copy the full SHA
    ece5bbb View commit details
    Browse the repository at this point in the history

Commits on Jul 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 authored and gbrayut committed Jul 26, 2016
    Configuration menu
    Copy the full SHA
    04850ec View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2016

  1. Partial Revert "Correct threading model used by wmi calls"

    This reverts part of commit 04850ec.
    
    using COINIT_APARTMENTTHREADED caused a memory leak.
    See Unity-Technologies#8
    gbrayut committed Jul 27, 2016
    Configuration menu
    Copy the full SHA
    d4ae5b4 View commit details
    Browse the repository at this point in the history