Author: hbelusca
Date: Thu Nov 15 23:13:23 2012
New Revision: 57715
URL:
http://svn.reactos.org/svn/reactos?rev=57715&view=rev
Log:
[KERNEL32/CONSRV]
Fix compilation.
Modified:
branches/ros-csrss/dll/win32/kernel32/client/console/alias.c
branches/ros-csrss/win32ss/user/consrv/alias.c
Modified: branches/ros-csrss/dll/win32/kernel32/client/console/alias.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-csrss/dll/win32/kernel32/cl…
==============================================================================
--- branches/ros-csrss/dll/win32/kernel32/client/console/alias.c [iso-8859-1] (original)
+++ branches/ros-csrss/dll/win32/kernel32/client/console/alias.c [iso-8859-1] Thu Nov 15
23:13:23 2012
@@ -66,19 +66,19 @@
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 @@
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,
Modified: branches/ros-csrss/win32ss/user/consrv/alias.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-csrss/win32ss/user/consrv/a…
==============================================================================
--- branches/ros-csrss/win32ss/user/consrv/alias.c [iso-8859-1] (original)
+++ branches/ros-csrss/win32ss/user/consrv/alias.c [iso-8859-1] Thu Nov 15 23:13:23 2012
@@ -298,15 +298,15 @@
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 @@
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)) )
{