From 9924bf6018a74f644947565334775798f0fa2894 Mon Sep 17 00:00:00 2001 From: Tau Date: Sat, 16 Mar 2019 12:06:07 -0400 Subject: [PATCH] amex/ds.c: Remove redundant OVERLAPPED handling capnhook handles this common case by itself. --- amex/ds.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/amex/ds.c b/amex/ds.c index a56f24d..b54e14a 100644 --- a/amex/ds.c +++ b/amex/ds.c @@ -1,16 +1,6 @@ -#define WIN32_NO_STATUS #include -#undef WIN32_NO_STATUS -#include - -#ifdef __GNUC__ -#include -#else -#include -#endif #include #include -#include #include #include @@ -206,14 +196,5 @@ static HRESULT ds_ioctl_read_sector(struct irp *irp) iobuf_move(&irp->read, &src); - if (irp->ovl != NULL) { - irp->ovl->Internal = STATUS_SUCCESS; - irp->ovl->InternalHigh = irp->read.pos; - - if (irp->ovl->hEvent != NULL) { - SetEvent(irp->ovl->hEvent); - } - } - return S_OK; }