Improved WM / DE detection logic

This commit is contained in:
Linus Dierheimer
2022-01-07 17:37:57 +01:00
parent 53f31f2401
commit 3f30fa8d4a
2 changed files with 74 additions and 13 deletions
+6
View File
@@ -329,6 +329,9 @@ void ffStrbufPutTo(const FFstrbuf* strbuf, FILE* file)
int ffStrbufComp(const FFstrbuf* strbuf, const FFstrbuf* comp)
{
if(strbuf->length != comp->length)
return (int) strbuf->length - (int) comp->length;
return ffStrbufCompS(strbuf, comp->chars);
}
@@ -339,6 +342,9 @@ int ffStrbufCompS(const FFstrbuf* strbuf, const char* comp)
int ffStrbufIgnCaseComp(const FFstrbuf* strbuf, const FFstrbuf* comp)
{
if(strbuf->length != comp->length)
return (int) strbuf->length - (int) comp->length;
return ffStrbufIgnCaseCompS(strbuf, comp->chars);
}