Fixed hash function.

This commit is contained in:
Eric Pouech 1999-11-15 00:07:30 +00:00 committed by Alexandre Julliard
parent 9aa8960f7e
commit bf2b765810
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}