[SYSDM]: Fix a SendDlgItemMessage(LB_GETITEMDATA) call that missed the index of the...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 25 May 2017 18:36:45 +0000 (18:36 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 25 May 2017 18:36:45 +0000 (18:36 +0000)
Caught by "cagey45" contributor on the forums: https://reactos.org/forum/viewtopic.php?f=9&t=16439 ; see also CORE-1151.

svn path=/trunk/; revision=74657

reactos/dll/cpl/sysdm/virtmem.c

index b3f991f..25bdb20 100644 (file)
@@ -406,7 +406,7 @@ OnSet(PVIRTMEM pVirtMem)
         DriveIndex = SendDlgItemMessage(pVirtMem->hSelf,
                                         IDC_PAGEFILELIST,
                                         LB_GETITEMDATA,
-                                        0,
+                                        (WPARAM)Index,
                                         0);
 
         /* Check if custom settings are checked */