win-pvdrivers

changeset 52:05f63c07888b

xenhide: use sizeof()
author Andy Grover <andy.grover@oracle.com>
date Mon Dec 17 14:01:41 2007 -0800 (2007-12-17)
parents a1a6a68d8ab8
children e170a016cea8
files xenhide/xenhide.c
line diff
     1.1 --- a/xenhide/xenhide.c	Mon Dec 17 14:01:27 2007 -0800
     1.2 +++ b/xenhide/xenhide.c	Mon Dec 17 14:01:41 2007 -0800
     1.3 @@ -213,10 +213,10 @@ XenHide_IoCompletion(PDEVICE_OBJECT Devi
     1.4  
     1.5    for (i = 0; i < Relations->Count; i++)
     1.6    {
     1.7 -    Length = 1000;
     1.8 +    Length = sizeof(Buffer);
     1.9      IoGetDeviceProperty(Relations->Objects[i], DevicePropertyDeviceDescription, Length, Buffer, &Length);
    1.10      KdPrint((__DRIVER_NAME "     %3d - %ws\n", i, Buffer));
    1.11 -    Length = 1000;
    1.12 +    Length = sizeof(Buffer);
    1.13      IoGetDeviceProperty(Relations->Objects[i], DevicePropertyHardwareID, Length, Buffer, &Length);
    1.14      Match = 0;
    1.15      StrLen = 0;