warnings from WDK 6000

fixed a few cases of warning 4242: possible loss of data

wincrypt.h appears to come with windows.h in later versions of the ddk, but nfs41_client.c fails to compile in WDK 6001 without #include <wincrypt.h>

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2010-10-18 11:09:27 -04:00 committed by unknown
parent 3613a75914
commit f8885dbad0
7 changed files with 11 additions and 9 deletions

View file

@ -170,7 +170,8 @@ void nfs_to_standard_info(
std_out->EndOfFile.QuadPart = (LONGLONG)info->size;
std_out->NumberOfLinks = info->numlinks;
std_out->DeletePending = FALSE;
std_out->Directory = FileAttributes & FILE_ATTRIBUTE_DIRECTORY;
std_out->Directory = FileAttributes & FILE_ATTRIBUTE_DIRECTORY ?
TRUE : FALSE;
}
@ -430,8 +431,8 @@ int create_silly_rename(
for (i = 0; i < fh->len; i++, tmp += 2)
StringCchPrintf(tmp, end - tmp, "%02x", fh->fh[i]);
path->len += extra_len;
silly->len += extra_len;
path->len = path->len + extra_len;
silly->len = silly->len + extra_len;
out:
return status;
}