[memfile] Add support for faking files in memory

This commit is contained in:
Will Xyen
2020-10-18 14:46:34 -07:00
parent be5a773cb7
commit 3d4df4cd64
9 changed files with 375 additions and 1 deletions
+9
View File
@@ -250,3 +250,12 @@ bool wstr_eq(const wchar_t *lhs, const wchar_t *rhs)
return wcscmp(lhs, rhs) == 0;
}
}
bool wstr_insensitive_eq(const wchar_t *lhs, const wchar_t *rhs)
{
if (lhs == NULL || rhs == NULL) {
return lhs == rhs;
} else {
return _wcsicmp(lhs, rhs) == 0;
}
}