- No need to use ULONG when dealing with strings, USHORT is enough. This makes MSVC warnings silent.
- Fix a really nasty bug in FsRtlIsHpfsDbcsLegal()
svn path=/trunk/; revision=50817
OUT PANSI_STRING FirstPart,
OUT PANSI_STRING RemainingPart)
{
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 */
PAGED_CODE();
/* Zero the strings before continuing */
NTAPI
FsRtlDoesDbcsContainWildCards(IN PANSI_STRING Name)
{
NTAPI
FsRtlDoesDbcsContainWildCards(IN PANSI_STRING Name)
{
PAGED_CODE();
/* Check every character */
PAGED_CODE();
/* Check every character */
{
ANSI_STRING FirstPart, RemainingPart, Name;
BOOLEAN LastDot;
{
ANSI_STRING FirstPart, RemainingPart, Name;
BOOLEAN LastDot;
PAGED_CODE();
/* Just quit if the string is empty */
PAGED_CODE();
/* Just quit if the string is empty */
IN BOOLEAN LeadingBackslashPermissible)
{
ANSI_STRING FirstPart, RemainingPart, Name;
IN BOOLEAN LeadingBackslashPermissible)
{
ANSI_STRING FirstPart, RemainingPart, Name;
PAGED_CODE();
/* Just quit if the string is empty */
PAGED_CODE();
/* Just quit if the string is empty */
i++;
}
/* Then check for bad characters */
i++;
}
/* Then check for bad characters */
- else if (!!FsRtlIsAnsiCharacterLegalHpfs(FirstPart.Buffer[i], WildCardsPermissible))
+ else if (!FsRtlIsAnsiCharacterLegalHpfs(FirstPart.Buffer[i], WildCardsPermissible))
UNICODE_STRING UpcaseName1;
UNICODE_STRING UpcaseName2;
BOOLEAN StringsAreEqual, MemoryAllocated = FALSE;
UNICODE_STRING UpcaseName1;
UNICODE_STRING UpcaseName2;
BOOLEAN StringsAreEqual, MemoryAllocated = FALSE;
NTSTATUS Status;
PAGED_CODE();
NTSTATUS Status;
PAGED_CODE();
OUT PUNICODE_STRING FirstPart,
OUT PUNICODE_STRING RemainingPart)
{
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 */
PAGED_CODE();
/* Zero the strings before continuing */