summaryrefslogtreecommitdiff
path: root/plugins/ShellExt/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-04-24 15:24:11 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-04-24 15:24:11 +0300
commitbf95ecabe893a0dac65d4906df3ff2ebf0e5a0ca (patch)
tree98ffd596dd84fb382fb0b0c6029a47954d4ae0e7 /plugins/ShellExt/src/utils.cpp
parentaf206b4db260512719cb2771f234b9d7975a3727 (diff)
fixes #1923 (ShellExt doesn't work in Windows 64)
Diffstat (limited to 'plugins/ShellExt/src/utils.cpp')
-rw-r--r--plugins/ShellExt/src/utils.cpp8
1 files changed, 4 insertions, 4 deletions
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