[KERNEL32]

- Set the full BOOL in CheckNameLegalDOS8Dot3, not just the low byte. Fixes some kernel32:file test failures.

svn path=/trunk/; revision=70107
This commit is contained in:
Thomas Faber 2015-11-25 10:06:03 +00:00
parent b5c754bd5f
commit e26b0ebe51

View file

@ -328,6 +328,7 @@ CheckNameLegalDOS8Dot3W(
{
UNICODE_STRING Name;
ANSI_STRING AnsiName;
BOOLEAN NameContainsSpaces;
if(lpName == NULL ||
(lpOemName == NULL && OemNameSize != 0) ||
@ -348,7 +349,9 @@ CheckNameLegalDOS8Dot3W(
*pbNameLegal = RtlIsNameLegalDOS8Dot3(&Name,
(lpOemName ? &AnsiName : NULL),
(BOOLEAN*)pbNameContainsSpaces);
&NameContainsSpaces);
if (*pbNameLegal && pbNameContainsSpaces)
*pbNameContainsSpaces = NameContainsSpaces;
return TRUE;
}
@ -370,6 +373,7 @@ CheckNameLegalDOS8Dot3A(
UNICODE_STRING Name;
ANSI_STRING AnsiName, AnsiInputName;
NTSTATUS Status;
BOOLEAN NameContainsSpaces;
if(lpName == NULL ||
(lpOemName == NULL && OemNameSize != 0) ||
@ -400,7 +404,9 @@ CheckNameLegalDOS8Dot3A(
*pbNameLegal = RtlIsNameLegalDOS8Dot3(&Name,
(lpOemName ? &AnsiName : NULL),
(BOOLEAN*)pbNameContainsSpaces);
&NameContainsSpaces);
if (*pbNameLegal && pbNameContainsSpaces)
*pbNameContainsSpaces = NameContainsSpaces;
RtlFreeUnicodeString(&Name);