mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 16:26:39 +01:00
Chore: runs clang-format
This commit is contained in:
@@ -67,7 +67,6 @@ const char* ffDetectHost(FFHostResult* host) {
|
||||
if (ffStrbufStartsWithS(&host->name, "Standard PC")) {
|
||||
ffStrbufPrependS(&host->name, "KVM/QEMU ");
|
||||
}
|
||||
|
||||
#if __aarch64__
|
||||
else if (host->family.length == 0 && ffStrbufEqualS(&host->vendor, "Apple Inc.") && ffStrbufStartsWithS(&host->name, "Mac")) {
|
||||
// Hack for Asahi Linux
|
||||
|
||||
@@ -163,9 +163,10 @@ static bool detectDefaultTerminal(FFTerminalResult* result) {
|
||||
FF_AUTO_CLOSE_FD HANDLE hkcu = NULL;
|
||||
if (ffRegOpenKeyForRead(HKEY_CURRENT_USER, L"Console\\%%Startup", &hkcu, NULL) &&
|
||||
ffRegReadData(hkcu, L"DelegationTerminal", &(FFArgBuffer) {
|
||||
.data = uuid,
|
||||
.length = (uint32_t) (sizeof(regPath) - (size_t) (uuid - regPath) * sizeof(wchar_t)),
|
||||
}, NULL)) {
|
||||
.data = uuid,
|
||||
.length = (uint32_t) (sizeof(regPath) - (size_t) (uuid - regPath) * sizeof(wchar_t)),
|
||||
},
|
||||
NULL)) {
|
||||
if (wcscmp(uuid, L"{00000000-0000-0000-0000-000000000000}") == 0 || // Let Windows decide
|
||||
wcscmp(uuid, L"{B23D10C0-E52E-411E-9D5B-C09FDF709C7D}") == 0) // Conhost
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user