Changeset 50482 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Feb 17, 2014 3:23:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.cpp
r50078 r50482 1113 1113 } 1114 1114 1115 static DECLCALLBACK(void *) hgsmiEnvAlloc(void *pvEnv, HGSMISIZE cb) 1116 { 1117 NOREF(pvEnv); 1118 return RTMemAlloc(cb); 1119 } 1120 1121 static DECLCALLBACK(void) hgsmiEnvFree(void *pvEnv, void *pv) 1122 { 1123 NOREF(pvEnv); 1124 RTMemFree(pv); 1125 } 1126 1127 static HGSMIENV g_hgsmiEnv = 1128 { 1129 NULL, 1130 hgsmiEnvAlloc, 1131 hgsmiEnvFree 1132 }; 1133 1115 1134 int HGSMISetupHostHeap (PHGSMIINSTANCE pIns, 1116 1135 HGSMIOFFSET offHeap, … … 1144 1163 { 1145 1164 rc = HGSMIHeapSetup (&pIns->hostHeap, 1165 HGSMI_HEAP_TYPE_OFFSET, 1146 1166 pIns->area.pu8Base+offHeap, 1147 1167 cbHeap, 1148 1168 offHeap, 1149 true /*fOffsetBased*/);1169 &g_hgsmiEnv); 1150 1170 } 1151 1171 … … 1376 1396 1377 1397 rc = HGSMIHeapRelocate(&pIns->hostHeap, 1398 u32Version > VGA_SAVEDSTATE_VERSION_HOST_HEAP? 1399 HGSMI_HEAP_TYPE_OFFSET: 1400 HGSMI_HEAP_TYPE_POINTER, 1378 1401 pIns->area.pu8Base+offHeap, 1379 1402 off, … … 1381 1404 cbHeap, 1382 1405 offHeap, 1383 u32Version > VGA_SAVEDSTATE_VERSION_HOST_HEAP);1406 &g_hgsmiEnv); 1384 1407 1385 1408 hgsmiHostHeapUnlock (pIns); … … 1681 1704 pIns->pszName = VALID_PTR(pszName)? pszName: ""; 1682 1705 1683 HGSMIHeapSetupUni tialized(&pIns->hostHeap);1706 HGSMIHeapSetupUninitialized(&pIns->hostHeap); 1684 1707 1685 1708 pIns->pfnNotifyGuest = pfnNotifyGuest; … … 1725 1748 #endif 1726 1749 1727 HGSMIHeapSetupUni tialized(&pIns->hostHeap);1750 HGSMIHeapSetupUninitialized(&pIns->hostHeap); 1728 1751 1729 1752 return flags;
Note:
See TracChangeset
for help on using the changeset viewer.