forked from Dniel97/segatools
amex/ds.c: Remove redundant OVERLAPPED handling
capnhook handles this common case by itself.
This commit is contained in:
parent
27663b4b19
commit
9924bf6018
19
amex/ds.c
19
amex/ds.c
@ -1,16 +1,6 @@
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windows.h>
|
||||
#undef WIN32_NO_STATUS
|
||||
#include <winternl.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#include <ntdef.h>
|
||||
#else
|
||||
#include <winnt.h>
|
||||
#endif
|
||||
#include <devioctl.h>
|
||||
#include <ntdddisk.h>
|
||||
#include <ntstatus.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user