Ticket #4561: snd_detect_minimal.patch

File snd_detect_minimal.patch, 831 bytes (added by Itms, 7 years ago)
  • source/lib/sysdep/os/win/wmi.cpp

     
    1 /* Copyright (c) 2011 Wildfire Games
     1/* Copyright (c) 2017 Wildfire Games
    22 *
    33 * Permission is hereby granted, free of charge, to any person obtaining
    44 * a copy of this software and associated documentation files (the
     
    5858        didInitCOM = true;
    5959
    6060    hr = CoInitializeSecurity(0, -1, 0, 0, RPC_C_AUTHN_LEVEL_DEFAULT, RPC_C_IMP_LEVEL_IMPERSONATE, 0, EOAC_NONE, 0);
    61     if(FAILED(hr))
     61    // Don't bother if another thing (typically the NVIDIA driver during graphics init) already registered the security values.
     62    if (hr != S_OK && hr != RPC_E_TOO_LATE)
    6263        WARN_RETURN(ERR::_2);
    6364
    6465    {