[CDROM_NEW] Fix SLIST_ENTRY vs SINGLE_LIST_ENTRY issues
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 7 Jan 2019 01:59:24 +0000 (02:59 +0100)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 4 Mar 2019 20:58:42 +0000 (21:58 +0100)
drivers/storage/class/cdrom_new/cdrom.c
drivers/storage/class/cdrom_new/mmc.c

index cbf3efb..e4703e3 100644 (file)
@@ -1412,9 +1412,9 @@ CdRomStartIo(
         //
 
         ExInterlockedPushEntrySList(&(cdData->Mmc.DelayedIrps),
-                                    (PSINGLE_LIST_ENTRY)&(Irp->Tail.Overlay.DriverContext[0]),
+                                    (PSLIST_ENTRY)&(Irp->Tail.Overlay.DriverContext[0]), // ReactOS
                                     &(cdData->Mmc.DelayedLock));
-        
+
         queueDepth = ExQueryDepthSList(&(cdData->Mmc.DelayedIrps));
         if (queueDepth == 1) {
 
index 7dcc361..8ea84a8 100644 (file)
@@ -1233,7 +1233,11 @@ CdRompFlushDelayedList(
     IN BOOLEAN CalledFromWorkItem
     )
 {
+#ifdef __REACTOS__
+    PSLIST_ENTRY list;
+#else
     PSINGLE_LIST_ENTRY list;
+#endif
     PIRP irp;
 
     // NOTE - REF #0002