VirtualBox

Changeset 1858 in vbox for trunk


Ignore:
Timestamp:
Apr 2, 2007 12:29:41 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20073
Message:

pfnDriverAttach has to pass the real return value of pfnConstruct, not VINF_SUCCESS. I checked that every device is able to handle this correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMDevice.cpp

    r1354 r1858  
    19511951                                 pDrv->pDrvReg->szDriverName, pNew->iInstance, iLun, pDevIns->pDevReg->szDeviceName, pDevIns->iInstance));
    19521952                            LogFlow(("pdmR3DevHlp_DriverAttach: caller '%s'/%d: returns %Vrc\n", pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VINF_SUCCESS));
    1953                             return VINF_SUCCESS;
     1953                            /*
     1954                             * Might return != VINF_SUCCESS (e.g. VINF_NAT_DNS) */
     1955                            return rc;
    19541956                        }
    19551957
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette