Author: pschweitzer
Date: Sat Feb 19 13:58:55 2011
New Revision: 50817
URL:
http://svn.reactos.org/svn/reactos?rev=50817&view=rev
Log:
[NTOSKRNL]
- No need to use ULONG when dealing with strings, USHORT is enough. This makes MSVC
warnings silent.
- Fix a really nasty bug in FsRtlIsHpfsDbcsLegal()
Modified:
trunk/reactos/ntoskrnl/fsrtl/dbcsname.c
trunk/reactos/ntoskrnl/fsrtl/name.c
Modified: trunk/reactos/ntoskrnl/fsrtl/dbcsname.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fsrtl/dbcsname.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/fsrtl/dbcsname.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/fsrtl/dbcsname.c [iso-8859-1] Sat Feb 19 13:58:55 2011
@@ -46,8 +46,8 @@
OUT PANSI_STRING FirstPart,
OUT PANSI_STRING RemainingPart)
{
- ULONG FirstPosition, i;
- ULONG SkipFirstSlash = 0;
+ USHORT FirstPosition, i;
+ USHORT SkipFirstSlash = 0;
PAGED_CODE();
/* Zero the strings before continuing */
@@ -116,7 +116,7 @@
NTAPI
FsRtlDoesDbcsContainWildCards(IN PANSI_STRING Name)
{
- ULONG i;
+ USHORT i;
PAGED_CODE();
/* Check every character */
@@ -300,7 +300,7 @@
{
ANSI_STRING FirstPart, RemainingPart, Name;
BOOLEAN LastDot;
- ULONG i;
+ USHORT i;
PAGED_CODE();
/* Just quit if the string is empty */
@@ -437,7 +437,7 @@
IN BOOLEAN LeadingBackslashPermissible)
{
ANSI_STRING FirstPart, RemainingPart, Name;
- ULONG i;
+ USHORT i;
PAGED_CODE();
/* Just quit if the string is empty */
@@ -490,7 +490,7 @@
i++;
}
/* Then check for bad characters */
- else if (!!FsRtlIsAnsiCharacterLegalHpfs(FirstPart.Buffer[i],
WildCardsPermissible))
+ else if (!FsRtlIsAnsiCharacterLegalHpfs(FirstPart.Buffer[i],
WildCardsPermissible))
{
return FALSE;
}
Modified: trunk/reactos/ntoskrnl/fsrtl/name.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fsrtl/name.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/fsrtl/name.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/fsrtl/name.c [iso-8859-1] Sat Feb 19 13:58:55 2011
@@ -163,7 +163,7 @@
UNICODE_STRING UpcaseName1;
UNICODE_STRING UpcaseName2;
BOOLEAN StringsAreEqual, MemoryAllocated = FALSE;
- ULONG i;
+ USHORT i;
NTSTATUS Status;
PAGED_CODE();
@@ -255,8 +255,8 @@
OUT PUNICODE_STRING FirstPart,
OUT PUNICODE_STRING RemainingPart)
{
- ULONG FirstPosition, i;
- ULONG SkipFirstSlash = 0;
+ USHORT FirstPosition, i;
+ USHORT SkipFirstSlash = 0;
PAGED_CODE();
/* Zero the strings before continuing */