aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-10-06 12:11:07 -0700
committerGavin Andresen <gavinandresen@gmail.com>2011-10-06 12:11:07 -0700
commite9b95e4f6c35cb0f150ff7e70154668f142ee0ba (patch)
treefadca46fb105ef530b87f42d625061fa79143107 /src
parent32ebde46123046d5dd41789b40578d2d43f1e7ef (diff)
parentb95e6376d083dc904722c4b5ddd7954a3a44826d (diff)
Merge pull request #572 from delirium---/master
Fix for win64 build
Diffstat (limited to 'src')
-rw-r--r--src/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index c05143bece..70e1a5599b 100644
--- a/src/util.h
+++ b/src/util.h
@@ -710,8 +710,8 @@ inline bool AffinityBugWorkaround(void(*pfn)(void*))
{
#ifdef __WXMSW__
// Sometimes after a few hours affinity gets stuck on one processor
- DWORD dwProcessAffinityMask = -1;
- DWORD dwSystemAffinityMask = -1;
+ DWORD_PTR dwProcessAffinityMask = -1;
+ DWORD_PTR dwSystemAffinityMask = -1;
GetProcessAffinityMask(GetCurrentProcess(), &dwProcessAffinityMask, &dwSystemAffinityMask);
DWORD dwPrev1 = SetThreadAffinityMask(GetCurrentThread(), dwProcessAffinityMask);
DWORD dwPrev2 = SetThreadAffinityMask(GetCurrentThread(), dwProcessAffinityMask);