[KMTESTS]

- Fix uninitialized variable usage. Found by ROS ;)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53364
This commit is contained in:
Thomas Faber 2011-08-22 00:46:51 +00:00
parent 937c60d74a
commit cf1e292d8a

View file

@ -114,11 +114,11 @@ DriverEntry(
RtlInitUnicodeString(&DeviceName, DeviceNameBuffer);
DeviceName.MaximumLength = sizeof DeviceNameBuffer;
TestEntry(DriverObject, RegistryPath, &DeviceNameSuffix, &Flags);
RtlAppendUnicodeToString(&DeviceName, DeviceNameSuffix);
/* create test device */
if (!(Flags & TESTENTRY_NO_CREATE_DEVICE))
{
RtlAppendUnicodeToString(&DeviceName, DeviceNameSuffix);
Status = IoCreateDevice(DriverObject, 0, &DeviceName,
FILE_DEVICE_UNKNOWN,
FILE_DEVICE_SECURE_OPEN | FILE_READ_ONLY_DEVICE,