mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:35:40 +00:00
[TASKMGR] Fix 64-bit bugs
This commit is contained in:
parent
b386ea728f
commit
a64a674980
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue