Ticket #4561: snd_detect_minimal.patch
File snd_detect_minimal.patch, 831 bytes (added by , 7 years ago) |
---|
-
source/lib/sysdep/os/win/wmi.cpp
1 /* Copyright (c) 201 1Wildfire Games1 /* Copyright (c) 2017 Wildfire Games 2 2 * 3 3 * Permission is hereby granted, free of charge, to any person obtaining 4 4 * a copy of this software and associated documentation files (the … … 58 58 didInitCOM = true; 59 59 60 60 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) 62 63 WARN_RETURN(ERR::_2); 63 64 64 65 {