From 6a194b4926df20970056c8bec4d9fcf38c556dea Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 17 Sep 2015 21:59:06 -0400 Subject: [PATCH] [RSP] warning C4267: conversion, possible loss of data --- Source/RSP/RSP Command.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/RSP/RSP Command.c b/Source/RSP/RSP Command.c index 7297dc795..b6d957355 100644 --- a/Source/RSP/RSP Command.c +++ b/Source/RSP/RSP Command.c @@ -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) {