mirror of
https://github.com/xavo95/repak.git
synced 2025-01-18 19:04:07 +00:00
Fix not converting path to lowercase before hashing
This commit is contained in:
parent
8fa8dfa2f9
commit
5b6b2666a6
1 changed files with 1 additions and 0 deletions
|
@ -490,6 +490,7 @@ fn generate_path_hash_index<W: Write>(
|
||||||
writer.write_u32::<LE>(entries.len() as u32)?;
|
writer.write_u32::<LE>(entries.len() as u32)?;
|
||||||
for (path, offset) in entries.keys().zip(offsets) {
|
for (path, offset) in entries.keys().zip(offsets) {
|
||||||
let utf16le_path = path
|
let utf16le_path = path
|
||||||
|
.to_lowercase()
|
||||||
.encode_utf16()
|
.encode_utf16()
|
||||||
.flat_map(|c| c.to_le_bytes())
|
.flat_map(|c| c.to_le_bytes())
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
Loading…
Reference in a new issue