Index: /trunk/src/VBox/GuestHost/OpenGL/util/hash.c
===================================================================
--- /trunk/src/VBox/GuestHost/OpenGL/util/hash.c	(revision 55616)
+++ /trunk/src/VBox/GuestHost/OpenGL/util/hash.c	(revision 55617)
@@ -488,4 +488,5 @@
 void crHashtableAdd( CRHashTable *h, unsigned long key, void *data )
 {
+    unsigned int index = crHash(key);
     CRHashNode *node = (CRHashNode *) crCalloc( sizeof( CRHashNode ) );
 #ifdef CHROMIUM_THREADSAFE
@@ -494,6 +495,6 @@
     node->key = key;
     node->data = data;
-    node->next = h->buckets[crHash( key )];
-    h->buckets[ crHash( key ) ] = node;
+    node->next = h->buckets[index];
+    h->buckets[index] = node;
     h->num_elements++;
     crHashIdPoolAllocId (h->idPool, key);
