[ros-diffs] [tfaber] 53364: [KMTESTS] - Fix uninitialized variable usage. Found by ROS ; )

tfaber at svn.reactos.org tfaber at svn.reactos.org
Mon Aug 22 00:46:51 UTC 2011


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/kmtest_drv/kmtest_standalone.c?rev=53364&r1=53363&r2=53364&view=diff
==============================================================================
--- 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,




More information about the Ros-diffs mailing list