From 4ba7bf7dbe8c512d2cc47e0acd23ee7ccce87ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Thu, 25 May 2017 18:36:45 +0000 Subject: [PATCH] [SYSDM]: Fix a SendDlgItemMessage(LB_GETITEMDATA) call that missed the index of the list item being selected. This fixes setting the page file for the actual selected disk. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/cpl/sysdm/virtmem.c b/reactos/dll/cpl/sysdm/virtmem.c index b3f991feb6d..25bdb20bd21 100644 --- a/reactos/dll/cpl/sysdm/virtmem.c +++ b/reactos/dll/cpl/sysdm/virtmem.c @@ -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 */