git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
32ebde4
)
Merge pull request #572 from delirium---/master
author
Gavin Andresen
<gavinandresen@gmail.com>
Thu, 6 Oct 2011 19:11:07 +0000 (12:11 -0700)
committer
Gavin Andresen
<gavinandresen@gmail.com>
Thu, 6 Oct 2011 19:11:07 +0000 (12:11 -0700)
Fix for win64 build
src/util.h
patch
|
blob
|
history
diff --git
a/src/util.h
b/src/util.h
index
c05143b
..
70e1a55
100644
(file)
--- 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);