Changeset 35959 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Feb 14, 2011 2:30:03 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70020
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c
r35946 r35959 85 85 } 86 86 87 /** 88 * @copydoc RAWPCIDEVPORT:: pfnRelease 89 */ 90 DECLHIDDEN(int) vboxPciDevInit(PRAWPCIDEVPORT pThis, uint32_t fFlags) 91 { 92 return VINF_SUCCESS; 93 } 94 87 95 88 96 /** … … 113 121 pNew->DevPort.pfnRetain = vboxPciDevRetain; 114 122 pNew->DevPort.pfnRelease = vboxPciDevRelease; 123 pNew->DevPort.pfnInit = vboxPciDevInit; 115 124 pNew->DevPort.u32VersionEnd = RAWPCIDEVPORT_VERSION; 116 125 117 126 rc = RTSpinlockCreate(&pNew->hSpinlock); 118 if (RT_SUCCESS(rc)) 119 { 120 *ppDevPort = &pNew->DevPort; 127 128 if (RT_SUCCESS(rc)) 129 { 130 rc = pNew->DevPort.pfnInit(&pNew->DevPort, fFlags); 131 if (RT_SUCCESS(rc)) 132 { 133 *ppDevPort = &pNew->DevPort; 134 } 135 else 136 { 137 RTSpinlockDestroy(pNew->hSpinlock); 138 RTMemFree(pNew); 139 } 121 140 return rc; 122 141 }
Note:
See TracChangeset
for help on using the changeset viewer.