mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
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:
parent
bed62087c7
commit
89c6f610e2
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user