core-1151 has a comment added on 2016-02-21 by Radek that page files on drives other than C weren't created. Seemed a good place to start learning the code.
This is caused by a hard coded index of 0 in wParam to retrieve the value for DriveIndex so it always gets the C drive.
I'm not really sure about putting it in jira as its not really related to what that issue is about, although this patch will make it easier to test that issue.
Code: Select all
Index: dll/cpl/sysdm/virtmem.c
===================================================================
--- dll/cpl/sysdm/virtmem.c (revision 74635)
+++ dll/cpl/sysdm/virtmem.c (working copy)
@@ -406,7 +406,7 @@
DriveIndex = SendDlgItemMessage(pVirtMem->hSelf,
IDC_PAGEFILELIST,
LB_GETITEMDATA,
- 0,
+ Index,
0);
/* Check if custom settings are checked */