mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 05:35:06 +00:00
[KMTESTS]
- Fix uninitialized variable usage. Found by ROS ;) svn path=/branches/GSoC_2011/KMTestSuite/; revision=53364
This commit is contained in:
parent
937c60d74a
commit
cf1e292d8a
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue