Author: tfaber Date: Mon Aug 22 00:46:51 2011 New Revision: 53364
URL: http://svn.reactos.org/svn/reactos?rev=53364&view=rev Log: [KMTESTS] - Fix uninitialized variable usage. Found by ROS ;)
Modified: branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv/kmtest_standalone.c
Modified: branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv/kmtest_standalone.c URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/km... ============================================================================== --- branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv/kmtest_standalone.c [iso-8859-1] (original) +++ branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv/kmtest_standalone.c [iso-8859-1] Mon Aug 22 00:46:51 2011 @@ -114,11 +114,11 @@ 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,