https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a64a6749807fc379bd362…
commit a64a6749807fc379bd36211b52287ee82cc230b0
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sun Nov 26 11:57:29 2023 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Mon Nov 27 23:30:51 2023 +0200
[TASKMGR] Fix 64-bit bugs
---
base/applications/taskmgr/affinity.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/base/applications/taskmgr/affinity.c b/base/applications/taskmgr/affinity.c
index 6470caa9526..dbf599dd01a 100644
--- a/base/applications/taskmgr/affinity.c
+++ b/base/applications/taskmgr/affinity.c
@@ -75,13 +75,13 @@ AffinityDialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM
lParam)
/*
* Enable a checkbox for each processor present in the system
*/
- if (dwSystemAffinityMask & (1 << nCpu))
+ if (dwSystemAffinityMask & ((ULONG_PTR)1 << nCpu))
EnableWindow(GetDlgItem(hDlg, dwCpuTable[nCpu]), TRUE);
/*
* Check each checkbox that the current process
* has affinity with
*/
- if (dwProcessAffinityMask & (1 << nCpu))
+ if (dwProcessAffinityMask & ((ULONG_PTR)1 << nCpu))
CheckDlgButton(hDlg, dwCpuTable[nCpu], BST_CHECKED);
}
@@ -109,7 +109,7 @@ AffinityDialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM
lParam)
* checkbox that the user checked.
*/
if (IsDlgButtonChecked(hDlg, dwCpuTable[nCpu]))
- dwProcessAffinityMask |= (1 << nCpu);
+ dwProcessAffinityMask |= ((ULONG_PTR)1 << nCpu);
}
/*