]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Buffer offset should be cleared or identify drive may return wrong data.
authorToni Wilen <twilen@winuae.net>
Tue, 10 Jan 2017 18:29:06 +0000 (20:29 +0200)
committerToni Wilen <twilen@winuae.net>
Tue, 10 Jan 2017 18:29:06 +0000 (20:29 +0200)
ide.cpp

diff --git a/ide.cpp b/ide.cpp
index 1ad9f4c0f6a9661f97a50a0b4620e36ddb77f270..8aaae7831cfb6b5bb296050e4a1fbc3d6c1bf3e0 100644 (file)
--- a/ide.cpp
+++ b/ide.cpp
@@ -301,6 +301,7 @@ static void ide_data_ready (struct ide_hdf *ide)
        memset (ide->secbuf, 0, ide->blocksize);
        ide->data_offset = 0;
        ide->data_size = ide->blocksize;
+       ide->buffer_offset = 0;
        ide->data_multi = 1;
        ide->intdrq = true;
        ide_interrupt (ide);