From 14c5e5560bdae2ff5c535cab24480a420137e6e3 Mon Sep 17 00:00:00 2001 From: freedom7341 Date: Tue, 10 Oct 2023 16:32:25 -0600 Subject: [PATCH] cast --- progmgr/dialog.c | 2 +- progmgr/group.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/progmgr/dialog.c b/progmgr/dialog.c index e844d43..e41d871 100644 --- a/progmgr/dialog.c +++ b/progmgr/dialog.c @@ -256,7 +256,7 @@ BOOL CALLBACK NewItemDlgProc(HWND hWndDlg, UINT message, WPARAM wParam, LPARAM l bOKEnabled = bOKEnabled && GetDlgItemText(hWndDlg, IDD_WORKPATH, (LPWSTR)&szBuffer, ARRAYSIZE(szBuffer)); // Check that we have selected an MDI child window as well - if (SendMessage(hWndMDIClient, WM_MDIGETACTIVE, 0, FALSE) == NULL) + if ((HWND)SendMessage(hWndMDIClient, WM_MDIGETACTIVE, 0, FALSE) == (HWND)NULL) bOKEnabled = FALSE; // Enable or disable the relevant controls based on the information diff --git a/progmgr/group.c b/progmgr/group.c index a3406a9..173acf5 100644 --- a/progmgr/group.c +++ b/progmgr/group.c @@ -222,7 +222,7 @@ PITEM CreateItem(_In_ HWND hWndGroup, _In_ PITEM pi) lvi.pszText = pItem->szName; lvi.cchTextMax = ARRAYSIZE(pItem->szName); // lvi.iImage = I_IMAGECALLBACK; - lvi.lParam = pItem; + lvi.lParam = (LPARAM)pItem; // copy that bad boy into the listview ListView_InsertItem(FindWindowEx(hWndGroup, NULL, TEXT("ListView"), NULL), &lvi);