mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[KERNEL32/CONSRV]
Fix compilation. svn path=/branches/ros-csrss/; revision=57715
This commit is contained in:
parent
903d3cfb1c
commit
0bdd9a32b0
2 changed files with 11 additions and 11 deletions
|
@ -66,19 +66,19 @@ AddConsoleAliasW(LPCWSTR lpSource,
|
|||
CsrCaptureMessageBuffer(CaptureBuffer,
|
||||
(PVOID)lpSource,
|
||||
ConsoleAlias->SourceLength,
|
||||
&ConsoleAlias->Source);
|
||||
(PVOID*)&ConsoleAlias->Source);
|
||||
|
||||
CsrCaptureMessageBuffer(CaptureBuffer,
|
||||
(PVOID)lpExeName,
|
||||
ConsoleAlias->ExeLength,
|
||||
&ConsoleAlias->Exe);
|
||||
(PVOID*)&ConsoleAlias->Exe);
|
||||
|
||||
if (lpTarget) /* The target can be optional */
|
||||
{
|
||||
CsrCaptureMessageBuffer(CaptureBuffer,
|
||||
(PVOID)lpTarget,
|
||||
ConsoleAlias->TargetLength,
|
||||
&ConsoleAlias->Target);
|
||||
(PVOID*)&ConsoleAlias->Target);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -182,12 +182,12 @@ GetConsoleAliasW(LPWSTR lpSource,
|
|||
CsrCaptureMessageBuffer(CaptureBuffer,
|
||||
(PVOID)lpSource,
|
||||
ConsoleAlias->SourceLength,
|
||||
&ConsoleAlias->Source);
|
||||
(PVOID*)&ConsoleAlias->Source);
|
||||
|
||||
CsrCaptureMessageBuffer(CaptureBuffer,
|
||||
(PVOID)lpExeName,
|
||||
ConsoleAlias->ExeLength,
|
||||
&ConsoleAlias->Exe);
|
||||
(PVOID*)&ConsoleAlias->Exe);
|
||||
|
||||
/* Allocate space for the target buffer */
|
||||
CsrAllocateMessagePointer(CaptureBuffer,
|
||||
|
|
|
@ -298,15 +298,15 @@ CSR_API(SrvAddConsoleAlias)
|
|||
DPRINT("SrvAddConsoleAlias entered ApiMessage %p\n", ApiMessage);
|
||||
|
||||
if ( !CsrValidateMessageBuffer(ApiMessage,
|
||||
&ConsoleAlias->Source,
|
||||
(PVOID*)&ConsoleAlias->Source,
|
||||
ConsoleAlias->SourceLength,
|
||||
sizeof(BYTE)) ||
|
||||
!CsrValidateMessageBuffer(ApiMessage,
|
||||
&ConsoleAlias->Target,
|
||||
(PVOID*)&ConsoleAlias->Target,
|
||||
ConsoleAlias->TargetLength,
|
||||
sizeof(BYTE)) ||
|
||||
!CsrValidateMessageBuffer(ApiMessage,
|
||||
&ConsoleAlias->Exe,
|
||||
(PVOID*)&ConsoleAlias->Exe,
|
||||
ConsoleAlias->ExeLength,
|
||||
sizeof(BYTE)) )
|
||||
{
|
||||
|
@ -383,15 +383,15 @@ CSR_API(SrvGetConsoleAlias)
|
|||
DPRINT("SrvGetConsoleAlias entered ApiMessage %p\n", ApiMessage);
|
||||
|
||||
if ( !CsrValidateMessageBuffer(ApiMessage,
|
||||
&ConsoleAlias->Source,
|
||||
(PVOID*)&ConsoleAlias->Source,
|
||||
ConsoleAlias->SourceLength,
|
||||
sizeof(BYTE)) ||
|
||||
!CsrValidateMessageBuffer(ApiMessage,
|
||||
&ConsoleAlias->Target,
|
||||
(PVOID*)&ConsoleAlias->Target,
|
||||
ConsoleAlias->TargetLength,
|
||||
sizeof(BYTE)) ||
|
||||
!CsrValidateMessageBuffer(ApiMessage,
|
||||
&ConsoleAlias->Exe,
|
||||
(PVOID*)&ConsoleAlias->Exe,
|
||||
ConsoleAlias->ExeLength,
|
||||
sizeof(BYTE)) )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue