SW: Fix -Wint-to-pointer-cast

git-svn-id: https://svn.eduke32.com/eduke32@7531 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-04-08 06:28:15 +00:00 committed by Christoph Oelckers
parent d14039e821
commit daa2e46b13

View file

@ -236,8 +236,12 @@ static INT_PTR CALLBACK GamePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPA
{
int i;
i = ListBox_GetCurSel((HWND)lParam);
if (i != CB_ERR) i = ListBox_GetItemData((HWND)lParam, i);
if (i != CB_ERR) strcpy(settings.selectedgrp, ((struct grpfile *)i)->name);
if (i != CB_ERR)
{
LRESULT j = ListBox_GetItemData((HWND)lParam, i);
if (j != CB_ERR)
strcpy(settings.selectedgrp, ((struct grpfile const *)j)->name);
}
return TRUE;
}
default: break;