[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Mon, 27 Oct 2014 00:21:06 +0000 (00:21 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Mon, 27 Oct 2014 00:21:06 +0000 (00:21 +0000)
Don't leave the prefetch cache in a possibly invalid state if Fast486ReadLinearMemory
returns FALSE.

svn path=/trunk/; revision=65037

reactos/lib/fast486/common.c

index 3bb29a5..a9fb89c 100644 (file)
@@ -121,7 +121,11 @@ Fast486ReadMemory(PFAST486_STATE State,
                           Size);
             return TRUE;
         }
-        else return FALSE;
+        else
+        {
+            State->PrefetchValid = FALSE;
+            return FALSE;
+        }
     }
     else
 #endif