Kill some warnings.

svn path=/trunk/; revision=24208
This commit is contained in:
James Tabor 2006-09-18 23:37:22 +00:00
parent 3f0a7fb997
commit f8fcca6f06
3 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ CmpAllocate(
IN SIZE_T Size,
IN BOOLEAN Paged)
{
return malloc(Size);
return (PVOID) malloc(Size);
}
static VOID

View file

@ -122,7 +122,7 @@ RegpOpenOrCreateKey(
LocalKeyName = (PWSTR)KeyName;
for (;;)
{
End = wcschr(LocalKeyName, '\\');
End = (PWSTR) wcschr(LocalKeyName, '\\');
if (End)
{
KeyString.Buffer = LocalKeyName;

View file

@ -84,7 +84,7 @@ RtlAnsiStringToUnicodeString(
if (AllocateDestinationString)
{
UniDest->MaximumLength = (USHORT)Length + sizeof(WCHAR);
UniDest->Buffer = malloc(UniDest->MaximumLength);
UniDest->Buffer = (PWSTR) malloc(UniDest->MaximumLength);
if (!UniDest->Buffer)
return STATUS_NO_MEMORY;
}
@ -131,7 +131,7 @@ ExAllocatePool(
IN POOL_TYPE PoolType,
IN SIZE_T NumberOfBytes)
{
return malloc(NumberOfBytes);
return (PVOID) malloc(NumberOfBytes);
}
VOID NTAPI