[ros-dev] [ros-diffs] [fireball] 54833: [NTOS] - Cast to actually returned types not just PVOID.

Timo Kreuzer timo.kreuzer at web.de
Sat Jan 7 08:38:14 UTC 2012


Hi,

what's the point of this change? IMO it's just ugly when we start 
casting from PVOID everywhere.

Timo

Am 04.01.2012 13:22, schrieb fireball at svn.reactos.org:
> Author: fireball
> Date: Wed Jan  4 12:22:38 2012
> New Revision: 54833
>
> URL: http://svn.reactos.org/svn/reactos?rev=54833&view=rev
> Log:
> [NTOS]
> - Cast to actually returned types not just PVOID.
>
> Modified:
>      trunk/reactos/ntoskrnl/include/internal/lpc_x.h
>
> Modified: trunk/reactos/ntoskrnl/include/internal/lpc_x.h
> URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/lpc_x.h?rev=54833&r1=54832&r2=54833&view=diff
> ==============================================================================
> --- trunk/reactos/ntoskrnl/include/internal/lpc_x.h [iso-8859-1] (original)
> +++ trunk/reactos/ntoskrnl/include/internal/lpc_x.h [iso-8859-1] Wed Jan  4 12:22:38 2012
> @@ -103,7 +103,7 @@
>
>       /* Allocate a message from the port zone while holding the lock */
>       KeAcquireGuardedMutex(&LpcpLock);
> -    Message = ExAllocateFromPagedLookasideList(&LpcpMessagesLookaside);
> +    Message = (PLPCP_MESSAGE)ExAllocateFromPagedLookasideList(&LpcpMessagesLookaside);
>       if (!Message)
>




More information about the Ros-dev mailing list