(ProcessId == (HANDLE)2) )\r
{\r
if (ProcessId == (HANDLE)1 || ProcessId == (HANDLE)2 ||\r
- ((LONG)ProcessId & 0xfffc) == ((ULONG)pEntry->ProcessId & 0xfffc))\r
+ ((LONG_PTR)ProcessId & 0xfffc) == ((ULONG_PTR)pEntry->ProcessId & 0xfffc))\r
{\r
- handle = GDI_HANDLE_CREATE(i, pEntry->Type);\r
+ handle = GDI_HANDLE_CREATE(i, (ULONG_PTR)pEntry->Type);\r
index = ListView_GetItemCount(hHandleListCtrl);\r
item.iItem = index;\r
item.iSubItem = 0;\r
str2 = GetTypeName(handle);\r
ListView_SetItemText(hHandleListCtrl, index, 3, str2);\r
\r
- wsprintf(strText, L"%#08x", (UINT)pEntry->ProcessId);\r
+ wsprintf(strText, L"%#08x", (UINT_PTR)pEntry->ProcessId);\r
ListView_SetItemText(hHandleListCtrl, index, 4, strText);\r
\r
- wsprintf(strText, L"%#08x", (UINT)pEntry->KernelData);\r
+ wsprintf(strText, L"%#08x", (UINT_PTR)pEntry->KernelData);\r
ListView_SetItemText(hHandleListCtrl, index, 5, strText);\r
\r
- wsprintf(strText, L"%#08x", (UINT)pEntry->UserData);\r
+ wsprintf(strText, L"%#08x", (UINT_PTR)pEntry->UserData);\r
ListView_SetItemText(hHandleListCtrl, index, 6, strText);\r
\r
wsprintf(strText, L"%#08x", (UINT)pEntry->Type);\r