git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
030d7ac
)
Fix for 64bit build
author
Victor Leschuk
<vleschuk@gmail.com>
Thu, 6 Oct 2011 15:53:42 +0000 (19:53 +0400)
committer
Luke Dashjr
<luke-jr+git@utopios.org>
Fri, 7 Oct 2011 15:04:04 +0000 (11:04 -0400)
src/util.h
patch
|
blob
|
history
diff --git
a/src/util.h
b/src/util.h
index
3d7ef10
..
6ecc92b
100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-662,8
+662,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);