mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-20 18:52:43 +00:00
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:
parent
d14039e821
commit
daa2e46b13
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue