[CDFS][FASTFAT][NPFS]

- Fix MSVC warnings

svn path=/trunk/; revision=52546
This commit is contained in:
Rafal Harabien 2011-07-05 13:55:39 +00:00
parent 2750bc8ed5
commit f6630535f2
8 changed files with 8 additions and 8 deletions

View file

@ -143,7 +143,7 @@ typedef struct _CDINFO
ULONG RootStart;
ULONG RootSize;
WCHAR VolumeLabel[MAXIMUM_VOLUME_LABEL_LENGTH / sizeof(WCHAR)];
ULONG VolumeLabelLength;
USHORT VolumeLabelLength;
ULONG SerialNumber;
} CDINFO, *PCDINFO;

View file

@ -40,7 +40,7 @@ CdfsMakeAbsoluteFilename(PFILE_OBJECT FileObject,
PUNICODE_STRING RelativeFileName,
PUNICODE_STRING AbsoluteFileName)
{
ULONG Length;
USHORT Length;
PFCB Fcb;
NTSTATUS Status;

View file

@ -533,7 +533,7 @@ CdfsGetBothDirectoryInformation(PFCB Fcb,
/* Copy short name */
ASSERT(Fcb->ShortNameU.Length / sizeof(WCHAR) <= 12);
Info->ShortNameLength = Fcb->ShortNameU.Length;
Info->ShortNameLength = (CCHAR)Fcb->ShortNameU.Length;
RtlCopyMemory(Info->ShortName, Fcb->ShortNameU.Buffer, Fcb->ShortNameU.Length);
return(STATUS_SUCCESS);

View file

@ -153,7 +153,7 @@ CdfsGetNameInformation(PFILE_OBJECT FileObject,
ASSERT(Fcb != NULL);
/* If buffer can't hold at least the file name length, bail out */
if (*BufferLength < FIELD_OFFSET(FILE_NAME_INFORMATION, FileName[0]))
if (*BufferLength < (ULONG)FIELD_OFFSET(FILE_NAME_INFORMATION, FileName[0]))
return STATUS_BUFFER_OVERFLOW;
/* Calculate file name length in bytes */

View file

@ -46,7 +46,7 @@ CdfsGetPVDData(PUCHAR Buffer,
PCDINFO CdInfo)
{
PPVD Pvd;
ULONG i;
USHORT i;
PUCHAR pc;
PWCHAR pw;

View file

@ -379,7 +379,7 @@ VfatGetNameInformation(PFILE_OBJECT FileObject,
ASSERT(FCB != NULL);
/* If buffer can't hold at least the file name length, bail out */
if (*BufferLength < FIELD_OFFSET(FILE_NAME_INFORMATION, FileName[0]))
if (*BufferLength < (ULONG)FIELD_OFFSET(FILE_NAME_INFORMATION, FileName[0]))
return STATUS_BUFFER_OVERFLOW;
/* Save file name length, and as much file len, as buffer length allows */

View file

@ -21,7 +21,7 @@ NpfsQueryDirectory(PNPFS_CCB Ccb,
PULONG Size)
{
PIO_STACK_LOCATION Stack;
LONG BufferLength = 0;
ULONG BufferLength = 0;
PUNICODE_STRING SearchPattern = NULL;
FILE_INFORMATION_CLASS FileInformationClass;
ULONG FileIndex = 0;

View file

@ -21,7 +21,7 @@ VOID HexDump(PUCHAR Buffer, ULONG Length)
CHAR Line[65];
UCHAR ch;
const char Hex[] = "0123456789ABCDEF";
int i, j;
ULONG i, j;
DbgPrint("---------------\n");