Reactos

[TASKMGR] Fix 64-bit bugs

+3 -3
+3 -3
base/applications/taskmgr/affinity.c
··· 75 75 /* 76 76 * Enable a checkbox for each processor present in the system 77 77 */ 78 - if (dwSystemAffinityMask & (1 << nCpu)) 78 + if (dwSystemAffinityMask & ((ULONG_PTR)1 << nCpu)) 79 79 EnableWindow(GetDlgItem(hDlg, dwCpuTable[nCpu]), TRUE); 80 80 /* 81 81 * Check each checkbox that the current process 82 82 * has affinity with 83 83 */ 84 - if (dwProcessAffinityMask & (1 << nCpu)) 84 + if (dwProcessAffinityMask & ((ULONG_PTR)1 << nCpu)) 85 85 CheckDlgButton(hDlg, dwCpuTable[nCpu], BST_CHECKED); 86 86 } 87 87 ··· 109 109 * checkbox that the user checked. 110 110 */ 111 111 if (IsDlgButtonChecked(hDlg, dwCpuTable[nCpu])) 112 - dwProcessAffinityMask |= (1 << nCpu); 112 + dwProcessAffinityMask |= ((ULONG_PTR)1 << nCpu); 113 113 } 114 114 115 115 /*