mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Kernel (Windows): remove trailing \0
This commit is contained in:
@@ -184,7 +184,7 @@ static void getSystemReleaseAndVersion(FFPlatform* platform)
|
||||
ffStrbufEnsureFree(&platform->systemVersion, 256);
|
||||
bufSize = (DWORD) ffStrbufGetFree(&platform->systemVersion);
|
||||
if(RegGetValueA(hKey, NULL, "DisplayVersion", RRF_RT_REG_SZ, NULL, platform->systemVersion.chars, &bufSize) == ERROR_SUCCESS)
|
||||
platform->systemVersion.length = (uint32_t) bufSize;
|
||||
platform->systemVersion.length = (uint32_t) bufSize - 1;
|
||||
|
||||
RegCloseKey(hKey);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user