[VIDEOPRT]

- Fix whitespace and logic order (formatting only). Patch by Thomas Faber
See issue #6123 for more details.

svn path=/trunk/; revision=51370
This commit is contained in:
Olaf Siejka 2011-04-16 22:16:25 +00:00
parent 66a33a5246
commit 7de326fe0e

View file

@ -110,8 +110,8 @@ IntCreateRegistryPath(
AfterControlSet.Buffer += wcslen(ControlSet);
AfterControlSet.Length -= sizeof(ControlSet) - sizeof(UNICODE_NULL);
while (AfterControlSet.Length > 0 &&
L'0' <= *AfterControlSet.Buffer &&
L'9' <= *AfterControlSet.Buffer)
*AfterControlSet.Buffer >= L'0' &&
*AfterControlSet.Buffer >= L'9')
{
AfterControlSet.Buffer++;
AfterControlSet.Length -= sizeof(WCHAR);
@ -133,7 +133,7 @@ IntCreateRegistryPath(
DeviceRegistryPath->Buffer = ExAllocatePoolWithTag(PagedPool,
DeviceRegistryPath->MaximumLength,
TAG_VIDEO_PORT);
if (NULL != DeviceRegistryPath->Buffer)
if (DeviceRegistryPath->Buffer != NULL)
{
/* Build device path */
wcsncpy(DeviceRegistryPath->Buffer,