2626
2727extern BOOLEAN VpBaseVideo ;
2828
29+ static UNICODE_STRING VideoClassName = RTL_CONSTANT_STRING (L"VIDEO" );
30+
2931/* PRIVATE FUNCTIONS **********************************************************/
3032
3133static BOOLEAN
@@ -228,7 +230,6 @@ IntVideoPortReleaseResources(
228230 }
229231 else
230232 {
231- static UNICODE_STRING VideoClassName = RTL_CONSTANT_STRING (L"VIDEO" );
232233 Status = IoReportResourceUsage (& VideoClassName ,
233234 DeviceExtension -> DriverObject ,
234235 NULL ,
@@ -302,7 +303,7 @@ IntAccessRangeIsInAllocatedResources(
302303 _In_ PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension ,
303304 _In_ PVIDEO_ACCESS_RANGE Range )
304305{
305- PCM_RESOURCE_LIST Res = DeviceExtension -> AllocatedResources ;
306+ CM_RESOURCE_LIST * Res = DeviceExtension -> AllocatedResources ;
306307 CM_FULL_RESOURCE_DESCRIPTOR * Full ;
307308 CM_PARTIAL_RESOURCE_DESCRIPTOR * Desc ;
308309
@@ -992,8 +993,6 @@ VideoPortVerifyAccessRanges(
992993 PCM_PARTIAL_RESOURCE_DESCRIPTOR PartialDescriptor ;
993994 ULONG i ;
994995 NTSTATUS Status ;
995- USHORT PciCommand ;
996- ULONG BytesRead ;
997996
998997 TRACE_ (VIDEOPRT , "VideoPortVerifyAccessRanges\n" );
999998
@@ -1013,7 +1012,7 @@ VideoPortVerifyAccessRanges(
10131012 KeWaitForMutexObject (& VgaSyncLock , Executive , KernelMode , FALSE, NULL );
10141013 if (VgaRanges )
10151014 {
1016- ExFreePool (VgaRanges );
1015+ ExFreePoolWithTag (VgaRanges , TAG_VIDEO_PORT );
10171016 VgaRanges = NULL ;
10181017 }
10191018 NumOfVgaRanges = 0 ;
@@ -1029,6 +1028,9 @@ VideoPortVerifyAccessRanges(
10291028 */
10301029 if (!DeviceExtension -> IsLegacyDevice && DeviceExtension -> AdapterInterfaceType == PCIBus )
10311030 {
1031+ USHORT PciCommand ;
1032+ ULONG BytesRead ;
1033+
10321034 BytesRead = HalGetBusDataByOffset (PCIConfiguration ,
10331035 DeviceExtension -> SystemIoBusNumber ,
10341036 DeviceExtension -> SystemIoSlotNumber ,
@@ -1138,7 +1140,6 @@ VideoPortVerifyAccessRanges(
11381140 /* IntIsVgaSaveDriver() will later ignore STATUS_CONFLICTING_ADDRESSES, but we still claim it */
11391141 if (!NT_SUCCESS (Status ) && IntIsVgaSaveDriver (DeviceExtension ))
11401142 {
1141- static UNICODE_STRING VideoClassName = RTL_CONSTANT_STRING (L"VIDEO" );
11421143 NTSTATUS fbStatus ;
11431144 BOOLEAN fbConflict = FALSE;
11441145 fbStatus = IoReportResourceUsage (& VideoClassName ,
@@ -1158,7 +1159,6 @@ VideoPortVerifyAccessRanges(
11581159 }
11591160 else
11601161 {
1161- static UNICODE_STRING VideoClassName = RTL_CONSTANT_STRING (L"VIDEO" );
11621162 Status = IoReportResourceUsage (& VideoClassName ,
11631163 DeviceExtension -> DriverObject ,
11641164 NULL ,
@@ -1191,7 +1191,7 @@ VideoPortVerifyAccessRanges(
11911191 KeWaitForMutexObject (& VgaSyncLock , Executive , KernelMode , FALSE, NULL );
11921192 if (VgaRanges )
11931193 {
1194- ExFreePool (VgaRanges );
1194+ ExFreePoolWithTag (VgaRanges , TAG_VIDEO_PORT );
11951195 VgaRanges = NULL ;
11961196 NumOfVgaRanges = 0 ;
11971197 }
0 commit comments