mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-20 15:45:05 -04:00
Initialize WMI only once, remove init calls from everywhere it is called and initialize it once as a static variable
* See comment: https://gitlab.com/CalcProgrammer1/OpenRGB/-/issues/1581#note_684260496
This commit is contained in:
1 parent
eaaed7fd83
commit
dd47256f06
6 files changed
+2
-5
No files matched your search
Vendored
-1
@@ -27,7 +27,6 @@ DMIInfo::DMIInfo()
|
||||
manufacturer = "";
|
||||
HRESULT hres;
|
||||
Wmi wmi;
|
||||
wmi.init();
|
||||
|
||||
// Query WMI for Win32_PnPSignedDriver entries with names matching "SMBUS" or "SM BUS"
|
||||
// These devices may be browsed under Device Manager -> System Devices
|
||||
|
||||
Reference in new issue
Block a user