https://git.reactos.org/?p=reactos.git;a=commitdiff;h=05f4951b8c2f49b3b0645…
commit 05f4951b8c2f49b3b0645f825854c8e6fd34f8a7
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Mon Jan 7 02:59:24 2019 +0100
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Mon Mar 4 21:58:42 2019 +0100
[CDROM_NEW] Fix SLIST_ENTRY vs SINGLE_LIST_ENTRY issues
---
drivers/storage/class/cdrom_new/cdrom.c | 4 ++--
drivers/storage/class/cdrom_new/mmc.c | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/storage/class/cdrom_new/cdrom.c
b/drivers/storage/class/cdrom_new/cdrom.c
index cbf3efb612..e4703e3073 100644
--- a/drivers/storage/class/cdrom_new/cdrom.c
+++ b/drivers/storage/class/cdrom_new/cdrom.c
@@ -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) {
diff --git a/drivers/storage/class/cdrom_new/mmc.c
b/drivers/storage/class/cdrom_new/mmc.c
index 7dcc3614a1..8ea84a89ef 100644
--- a/drivers/storage/class/cdrom_new/mmc.c
+++ b/drivers/storage/class/cdrom_new/mmc.c
@@ -1233,7 +1233,11 @@ CdRompFlushDelayedList(
IN BOOLEAN CalledFromWorkItem
)
{
+#ifdef __REACTOS__
+ PSLIST_ENTRY list;
+#else
PSINGLE_LIST_ENTRY list;
+#endif
PIRP irp;
// NOTE - REF #0002