bugfix: make ntfs_names_are_equal return true if both names are zero length

thanks to Leonard Norrgrd for the fix.

(Logical change 1.37)
This commit is contained in:
cantab.net!aia21 2002-12-10 16:46:10 +00:00
parent bed62087c7
commit 89c6f610e2
2 changed files with 3 additions and 1 deletions

View File

@ -147,6 +147,8 @@
- The word is "runlist", not "run_list", "run list", or "run-list".
- Prefix all functions with "ntfs_" and make the names of the form
"ntfs_object_action()". Keep this for all future functions!
- Change unistr.c::ntfs_names_are_equal() to return TRUE when both
names have zero length. Thanks to Leonard Norrgard for spotting this.
12/03/2002 - 1.6.0 - More mkntfs options and cleanups.
Fix typo in usage information of mkntfs. Thanks to Richard Russon for

View File

@ -77,7 +77,7 @@ BOOL ntfs_names_are_equal(const uchar_t *s1, size_t s1_len,
if (s1_len != s2_len)
return FALSE;
if (!s1_len)
return 0;
return TRUE;
if (ic == CASE_SENSITIVE)
return ntfs_ucsncmp(s1, s2, s1_len << 1) ? FALSE: TRUE;
return ntfs_ucsncasecmp(s1, s2, s1_len, upcase, upcase_size) ? FALSE: