[RSP] warning C4267: conversion, possible loss of data

This commit is contained in:
unknown 2015-09-17 21:59:06 -04:00
parent 341f2c2752
commit 6a194b4926
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)
{