[CPL][HDWWIZ] Move 'Index' and 'Item' variables to prologue

This commit is contained in:
Katayama Hirofumi MZ 2019-10-22 09:41:09 +09:00
parent 6fc6e3c398
commit ce498aa571

View file

@ -400,6 +400,7 @@ static INT_PTR CALLBACK
ProbeListPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
INT Index;
LVITEM Item;
switch (uMsg)
{
@ -453,9 +454,6 @@ ProbeListPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_DESTROY:
{
INT Index;
LVITEM Item;
for (Index = ListView_GetItemCount(GetDlgItem(hwndDlg, IDC_PROBELIST)); --Index > 0;)
{
ZeroMemory(&Item, sizeof(LV_ITEM));