mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:05:41 +00:00
[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:
parent
66a33a5246
commit
7de326fe0e
1 changed files with 12 additions and 12 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue