From bf95ecabe893a0dac65d4906df3ff2ebf0e5a0ca Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 24 Apr 2019 15:24:11 +0300 Subject: fixes #1923 (ShellExt doesn't work in Windows 64) --- plugins/ShellExt/src/utils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/ShellExt/src/utils.cpp') diff --git a/plugins/ShellExt/src/utils.cpp b/plugins/ShellExt/src/utils.cpp index 131ee01dbb..372acb1a1e 100644 --- a/plugins/ShellExt/src/utils.cpp +++ b/plugins/ShellExt/src/utils.cpp @@ -2,7 +2,7 @@ /////////////////////////////////////////////////////////////////////////////// -UINT murmur_hash(const char *str) +UINT murmur_hash(const char* str) { size_t len = lstrlenA(str); @@ -15,7 +15,7 @@ UINT murmur_hash(const char *str) unsigned int h = (unsigned)len; // Mix 4 bytes at a time into the hash - const unsigned char *data = (const unsigned char*)str; + const unsigned char* data = (const unsigned char*)str; while (len >= 4) { unsigned int k = *(unsigned int*)data; @@ -32,11 +32,11 @@ UINT murmur_hash(const char *str) } // Handle the last few bytes of the input array - switch(len) { + switch (len) { case 3: h ^= data[2] << 16; case 2: h ^= data[1] << 8; case 1: h ^= data[0]; - h *= m; + h *= m; } // Do a few final mixes of the hash to ensure the last few -- cgit v1.2.3