From ba77a09c04a02841a6b88428697bd725402c1b9d Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Thu, 12 Nov 2020 01:22:46 +0100 Subject: [PATCH] [UNIATA] Workaround random crashes on Virtual PC (#3377) I am not sure why this line was added. I don't know how I could improve that case. Then, disable it, for the time being. Addendum to 4b9cf2e (r71252). CORE-12441 CORE-17371 --- drivers/storage/ide/uniata/id_queue.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/storage/ide/uniata/id_queue.cpp b/drivers/storage/ide/uniata/id_queue.cpp index bdafe2fd8e6..a042cf21e54 100644 --- a/drivers/storage/ide/uniata/id_queue.cpp +++ b/drivers/storage/ide/uniata/id_queue.cpp @@ -231,7 +231,11 @@ UniataQueueRequest( AtaReq->next_req = NULL; LunExt->first_req = LunExt->last_req = AtaReq; +#ifdef __REACTOS__ + // Do nothing here, workaround for CORE-12441 and CORE-17371 +#else chan->cur_cdev = GET_CDEV(Srb); +#endif } LunExt->queue_depth++; chan->queue_depth++;