Commit bf2b7658 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Fixed hash function.

parent 9aa8960f
......@@ -73,7 +73,7 @@ static const struct object_ops file_ops =
static int get_name_hash( const char *name )
{
int hash = 0;
while (*name) hash ^= *name++;
while (*name) hash ^= (unsigned char)*name++;
return hash % NAME_HASH_SIZE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment