Merge pull request #612 from cxd4/implicit-LRESULT-to-DWORD

[RSP] warning C4267:  conversion, possible loss of data
This commit is contained in:
zilmar 2015-09-21 16:47:50 +10:00
commit f8384d247d
1 changed files with 4 additions and 2 deletions

View File

@ -470,8 +470,10 @@ LRESULT CALLBACK RSP_Commands_Proc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM
case IDC_LIST:
if (HIWORD(wParam) == LBN_DBLCLK )
{
DWORD Location, Selected;
Selected = SendMessage(hList,LB_GETCURSEL,(WPARAM)0, (LPARAM)0);
LRESULT Selected;
DWORD Location;
Selected = SendMessage(hList, LB_GETCURSEL, 0, 0);
Location = RSPCommandLine[Selected].Location;
if (Location != (DWORD)-1)
{