Fix building some modules.
[reactos.git] / rosapps / applications / devutils / gdihv / handlelist.c
index a1a3a8f..28eea95 100644 (file)
@@ -87,9 +87,9 @@ HandleList_Update(HWND hHandleListCtrl, HANDLE ProcessId)
                      (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
@@ -107,13 +107,13 @@ HandleList_Update(HWND hHandleListCtrl, HANDLE ProcessId)
                                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