[SMSS] Fix x64 build. Addendum to a0721eb
authorStanislav Motylkov <x86corez@gmail.com>
Thu, 26 Nov 2020 00:50:16 +0000 (03:50 +0300)
committerStanislav Motylkov <x86corez@gmail.com>
Thu, 26 Nov 2020 00:50:16 +0000 (03:50 +0300)
This part is specific for x86 architecture.

base/system/smss/pagefile.c

index 0e3b674..0aaed6d 100644 (file)
@@ -851,8 +851,12 @@ SmpCreateVolumeDescriptors(VOID)
     wcscpy(Buffer, L"\\??\\A:\\");
     RtlInitUnicodeString(&VolumePath, Buffer);
 
+#if defined(_M_IX86)
     /* Start with the C drive, except on NEC PC-98 */
     StartChar = IsNEC_98 ? L'A' : L'C';
+#else
+    StartChar = L'C';
+#endif
     for (Drive = StartChar, DriveDiff = StartChar - L'A'; Drive <= L'Z'; Drive++, DriveDiff++)
     {
         /* Skip the disk if it's not in the drive map */