small fixes

This commit is contained in:
Linus Dierheimer 2021-05-02 21:45:47 +02:00
parent 88d2530460
commit bd2e1da3b4
2 changed files with 3 additions and 3 deletions

View File

@ -41,12 +41,12 @@ static const char* getDConfValue(DConfData* data, const char* schemaName, const
ffStrbufAppendC(&dconfStyleKey, '/');
ffStrbufAppendTransformS(&dconfStyleKey, schemaName, transformGSettingsToDConf);
if(path == NULL || *path != '/')
if(path != NULL && *path != '/')
ffStrbufAppendC(&dconfStyleKey, '/');
ffStrbufAppendTransformS(&dconfStyleKey, path, transformGSettingsToDConf);
if(path != NULL && dconfStyleKey.chars[dconfStyleKey.length - 1] != '/')
if(dconfStyleKey.chars[dconfStyleKey.length - 1] != '/')
ffStrbufAppendC(&dconfStyleKey, '/');
ffStrbufAppendS(&dconfStyleKey, key);

View File

@ -100,7 +100,7 @@ void ffPrintCPU(FFinstance* instance)
const char* removeStrings[] = {
"(R)", "(r)", "(TM)", "(tm)",
" CPU", " FPU", " Processor",
" CPU", " FPU", " APU", " Processor",
" Dual-Core", " Quad-Core", " Six-Core", " Eight-Core", " Ten-Core",
" 2-Core", " 4-Core", " 6-Core", " 8-Core", " 10-Core", " 12-Core", " 14-Core", " 16-Core"
};