mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Kill some warnings.
svn path=/trunk/; revision=24208
This commit is contained in:
parent
3f0a7fb997
commit
f8fcca6f06
3 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ CmpAllocate(
|
|||
IN SIZE_T Size,
|
||||
IN BOOLEAN Paged)
|
||||
{
|
||||
return malloc(Size);
|
||||
return (PVOID) malloc(Size);
|
||||
}
|
||||
|
||||
static VOID
|
||||
|
|
|
@ -122,7 +122,7 @@ RegpOpenOrCreateKey(
|
|||
LocalKeyName = (PWSTR)KeyName;
|
||||
for (;;)
|
||||
{
|
||||
End = wcschr(LocalKeyName, '\\');
|
||||
End = (PWSTR) wcschr(LocalKeyName, '\\');
|
||||
if (End)
|
||||
{
|
||||
KeyString.Buffer = LocalKeyName;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue