https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ce498aa5714a42c449b24…
commit ce498aa5714a42c449b244feaa70c7df6d59e0af
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Tue Oct 22 09:41:09 2019 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Tue Oct 22 09:41:09 2019 +0900
[CPL][HDWWIZ] Move 'Index' and 'Item' variables to prologue
---
dll/cpl/hdwwiz/hdwwiz.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dll/cpl/hdwwiz/hdwwiz.c b/dll/cpl/hdwwiz/hdwwiz.c
index 0b1daccf343..10c5dfd7e31 100644
--- a/dll/cpl/hdwwiz/hdwwiz.c
+++ b/dll/cpl/hdwwiz/hdwwiz.c
@@ -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));