Author: tfaber
Date: Wed Nov 25 10:06:03 2015
New Revision: 70107
URL:
http://svn.reactos.org/svn/reactos?rev=70107&view=rev
Log:
[KERNEL32]
- Set the full BOOL in CheckNameLegalDOS8Dot3, not just the low byte. Fixes some
kernel32:file test failures.
Modified:
trunk/reactos/dll/win32/kernel32/client/file/filename.c
Modified: trunk/reactos/dll/win32/kernel32/client/file/filename.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/filename.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/filename.c [iso-8859-1] Wed Nov 25
10:06:03 2015
@@ -328,6 +328,7 @@
{
UNICODE_STRING Name;
ANSI_STRING AnsiName;
+ BOOLEAN NameContainsSpaces;
if(lpName == NULL ||
(lpOemName == NULL && OemNameSize != 0) ||
@@ -348,7 +349,9 @@
*pbNameLegal = RtlIsNameLegalDOS8Dot3(&Name,
(lpOemName ? &AnsiName : NULL),
- (BOOLEAN*)pbNameContainsSpaces);
+ &NameContainsSpaces);
+ if (*pbNameLegal && pbNameContainsSpaces)
+ *pbNameContainsSpaces = NameContainsSpaces;
return TRUE;
}
@@ -370,6 +373,7 @@
UNICODE_STRING Name;
ANSI_STRING AnsiName, AnsiInputName;
NTSTATUS Status;
+ BOOLEAN NameContainsSpaces;
if(lpName == NULL ||
(lpOemName == NULL && OemNameSize != 0) ||
@@ -400,7 +404,9 @@
*pbNameLegal = RtlIsNameLegalDOS8Dot3(&Name,
(lpOemName ? &AnsiName : NULL),
- (BOOLEAN*)pbNameContainsSpaces);
+ &NameContainsSpaces);
+ if (*pbNameLegal && pbNameContainsSpaces)
+ *pbNameContainsSpaces = NameContainsSpaces;
RtlFreeUnicodeString(&Name);