Changeset 29883 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideoHGSMI.cpp
- Timestamp:
- May 30, 2010 7:27:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideoHGSMI.cpp
r29798 r29883 1048 1048 int VBoxFreeDisplaysHGSMI(PDEVICE_EXTENSION PrimaryExtension) 1049 1049 { 1050 int rc ;1050 int rc = VINF_SUCCESS; 1051 1051 for (int i = PrimaryExtension->cSources-1; i >= 0; --i) 1052 1052 { … … 1057 1057 rc = vboxVbvaDestroy(PrimaryExtension, &PrimaryExtension->aSources[i].Vbva); 1058 1058 AssertRC(rc); 1059 if (RT_FAILURE(rc)) 1060 { 1061 /* @todo: */ 1062 } 1063 } 1064 } 1065 1066 rc = vboxVdmaDisable(PrimaryExtension, &PrimaryExtension->u.primary.Vdma); 1067 AssertRC(rc); 1068 if (RT_SUCCESS(rc)) 1069 { 1070 rc = vboxVdmaDestroy(PrimaryExtension, &PrimaryExtension->u.primary.Vdma); 1071 AssertRC(rc); 1072 if (RT_SUCCESS(rc)) 1073 { 1074 /*rc = */VBoxUnmapAdapterMemory(PrimaryExtension, &PrimaryExtension->u.primary.pvMiniportHeap, PrimaryExtension->u.primary.cbMiniportHeap); 1075 /* 1076 AssertRC(rc); 1059 1077 if (RT_SUCCESS(rc)) 1060 { 1061 rc = vboxVdmaDisable(PrimaryExtension, &PrimaryExtension->u.primary.Vdma); 1078 */ 1079 { 1080 HGSMIHeapDestroy(&PrimaryExtension->u.primary.hgsmiAdapterHeap); 1081 1082 /* Map the adapter information. It will be needed for HGSMI IO. */ 1083 /*rc = */VBoxUnmapAdapterMemory(PrimaryExtension, &PrimaryExtension->u.primary.pvAdapterInformation, VBVA_ADAPTER_INFORMATION_SIZE); 1084 /* 1062 1085 AssertRC(rc); 1063 if (RT_SUCCESS(rc)) 1064 { 1065 rc = vboxVdmaDestroy(PrimaryExtension, &PrimaryExtension->u.primary.Vdma); 1066 AssertRC(rc); 1067 if (RT_SUCCESS(rc)) 1068 { 1069 /*rc = */VBoxUnmapAdapterMemory(PrimaryExtension, &PrimaryExtension->u.primary.pvMiniportHeap, PrimaryExtension->u.primary.cbMiniportHeap); 1070 /* 1071 AssertRC(rc); 1072 if (RT_SUCCESS(rc)) 1086 if (RT_FAILURE(rc)) 1087 drprintf((__FUNCTION__"VBoxUnmapAdapterMemory PrimaryExtension->u.primary.pvAdapterInformation failed, rc(%d)\n", rc)); 1073 1088 */ 1074 { 1075 HGSMIHeapDestroy(&PrimaryExtension->u.primary.hgsmiAdapterHeap); 1076 1077 /* Map the adapter information. It will be needed for HGSMI IO. */ 1078 /*rc = */VBoxUnmapAdapterMemory(PrimaryExtension, &PrimaryExtension->u.primary.pvAdapterInformation, VBVA_ADAPTER_INFORMATION_SIZE); 1079 /* 1080 AssertRC(rc); 1081 if (RT_FAILURE(rc)) 1082 drprintf((__FUNCTION__"VBoxUnmapAdapterMemory PrimaryExtension->u.primary.pvAdapterInformation failed, rc(%d)\n", rc)); 1083 */ 1084 1085 } 1086 } 1087 } 1089 1088 1090 } 1089 1091 }
Note:
See TracChangeset
for help on using the changeset viewer.