Changeset 12694 in vbox
- Timestamp:
- Sep 24, 2008 3:22:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxGuest/Helper.cpp
r8155 r12694 46 46 dprintf(("found %d resources\n", pResList->List->PartialResourceList.Count)); 47 47 ULONG rangeCount = 0; 48 ULONG cMMIORange = 0; 48 49 PBASE_ADDRESS baseAddress = pDevExt->baseAddress; 49 50 for (ULONG i = 0; i < pResList->List->PartialResourceList.Count; i++) … … 108 109 // we only care about read/write memory 109 110 /** @todo reconsider memory type */ 110 if ((partialData->Flags & VBOX_CM_PRE_VISTA_MASK) == CM_RESOURCE_MEMORY_READ_WRITE) 111 if ( cMMIORange == 0 /* only care about the first mmio range (!!!) */ 112 && (partialData->Flags & VBOX_CM_PRE_VISTA_MASK) == CM_RESOURCE_MEMORY_READ_WRITE) 111 113 { 112 114 pDevExt->memoryAddress = partialData->u.Memory.Start; … … 118 120 baseAddress->ResourceMapped = FALSE; 119 121 // next item 120 rangeCount++; baseAddress++; 122 rangeCount++; baseAddress++;cMMIORange++; 121 123 } else 122 124 {
Note:
See TracChangeset
for help on using the changeset viewer.