Get correct physical address in HalpGrowMapBuffers.
authorFilip Navara <filip.navara@gmail.com>
Sun, 4 Sep 2005 15:18:52 +0000 (15:18 +0000)
committerFilip Navara <filip.navara@gmail.com>
Sun, 4 Sep 2005 15:18:52 +0000 (15:18 +0000)
svn path=/trunk/; revision=17636

reactos/hal/halx86/generic/dma.c

index 32ee17d..cb41e29 100644 (file)
@@ -235,6 +235,8 @@ HalpGrowMapBuffers(
    if (VirtualAddress == NULL)
       return FALSE;
 
    if (VirtualAddress == NULL)
       return FALSE;
 
+   PhysicalAddress = MmGetPhysicalAddress(VirtualAddress);
+
    /*
     * All the following must be done with the master adapter lock held
     * to prevent corruption.
    /*
     * All the following must be done with the master adapter lock held
     * to prevent corruption.