Changeset 12395 in vbox
- Timestamp:
- Sep 11, 2008 7:43:35 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/xgraphics/vboxutils.c
r12314 r12395 359 359 if (pVBox->vmmDevInfo) 360 360 { 361 if ( !pci_device_probe(pVBox->vmmDevInfo))361 if (pci_device_probe(pVBox->vmmDevInfo) != 0) 362 362 { 363 363 xf86DrvMsg (scrnIndex, X_ERROR, … … 366 366 pVBox->vmmDevInfo->device_id); 367 367 } 368 pci_device_map_range(pVBox->vmmDevInfo, 369 pVBox->vmmDevInfo->regions[1].base_addr, 370 pVBox->vmmDevInfo->regions[1].size, 371 PCI_DEV_MAP_FLAG_WRITABLE, 372 (void **)&pVBox->pVMMDevMemory); 368 else 369 { 370 if (pci_device_map_range(pVBox->vmmDevInfo, 371 pVBox->vmmDevInfo->regions[1].base_addr, 372 pVBox->vmmDevInfo->regions[1].size, 373 PCI_DEV_MAP_FLAG_WRITABLE, 374 (void **)&pVBox->pVMMDevMemory) != 0) 375 xf86DrvMsg (scrnIndex, X_ERROR, 376 "Failed to map VMM device range\n"); 377 } 373 378 } 374 379 #else
Note:
See TracChangeset
for help on using the changeset viewer.