[CPL][HDWWIZ] Move 'Index' and 'Item' variables to prologue
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Tue, 22 Oct 2019 00:41:09 +0000 (09:41 +0900)
committerKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Tue, 22 Oct 2019 00:41:09 +0000 (09:41 +0900)
dll/cpl/hdwwiz/hdwwiz.c

index 0b1dacc..10c5dfd 100644 (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));