hooklib/path.c: add slash-insensitive path comparison API

This commit is contained in:
888be1df7c6f962725a28a172a5394eec3e228e7
2019-12-18 21:30:35 +01:00
parent 03c7954ada
commit 54cd2f6e9a
3 changed files with 31 additions and 1 deletions

View File

@ -273,7 +273,7 @@ static HRESULT vfs_path_hook_nthome(
/* Case-insensitive check to see if src starts with vfs_nthome */
if (_wcsnicmp(src, vfs_nthome, vfs_nthome_len) != 0) {
if (path_compare_w(src, vfs_nthome, vfs_nthome_len) != 0) {
return S_FALSE;
}