mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 09:33:39 +01:00
Global: make FFinstance instance a global variable
As discussed in https://github.com/fastfetch-cli/fastfetch/discussions/473
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
//https://learn.microsoft.com/en-us/windows/win32/wmisdk/example--getting-wmi-data-from-the-local-computer
|
||||
//https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/computer-system-hardware-classes
|
||||
static void CoUninitializeWrap()
|
||||
static void CoUninitializeWrap(void)
|
||||
{
|
||||
CoUninitialize();
|
||||
}
|
||||
|
||||
@@ -15,9 +15,9 @@ namespace
|
||||
struct bstr_t
|
||||
{
|
||||
explicit bstr_t(const wchar_t* str) noexcept: _bstr(SysAllocString(str)) {}
|
||||
~bstr_t() noexcept { SysFreeString(_bstr); }
|
||||
explicit operator const wchar_t*() const noexcept { return _bstr; }
|
||||
operator BSTR() const noexcept { return _bstr; }
|
||||
~bstr_t(void) noexcept { SysFreeString(_bstr); }
|
||||
explicit operator const wchar_t*(void) const noexcept { return _bstr; }
|
||||
operator BSTR(void) const noexcept { return _bstr; }
|
||||
|
||||
private:
|
||||
BSTR _bstr;
|
||||
|
||||
Reference in New Issue
Block a user