Fixed compiler warnings.

svn path=/trunk/; revision=4102
This commit is contained in:
Eric Kohl 2003-02-02 17:21:06 +00:00
parent ffebe8dee1
commit 670b6c8678
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
/* $Id: shutdown.c,v 1.7 2003/01/07 17:32:59 robd Exp $ /* $Id: shutdown.c,v 1.8 2003/02/02 17:20:51 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
@ -43,7 +43,7 @@ AbortSystemShutdownA(LPCSTR lpMachineName)
NTSTATUS Status; NTSTATUS Status;
BOOL rv; BOOL rv;
RtlInitAnsiString(&MachineNameA, lpMachineName); RtlInitAnsiString(&MachineNameA, (LPSTR)lpMachineName);
Status = RtlAnsiStringToUnicodeString(&MachineNameW, &MachineNameA, TRUE); Status = RtlAnsiStringToUnicodeString(&MachineNameW, &MachineNameA, TRUE);
if (STATUS_SUCCESS != Status) { if (STATUS_SUCCESS != Status) {
SetLastError(RtlNtStatusToDosError(Status)); SetLastError(RtlNtStatusToDosError(Status));

View file

@ -1,4 +1,4 @@
/* $Id: ac.c,v 1.5 2002/11/14 18:21:04 chorns Exp $ /* $Id: ac.c,v 1.6 2003/02/02 17:21:06 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
@ -346,7 +346,7 @@ FindFirstFreeAce (
) )
{ {
return RtlFirstFreeAce (pAcl, return RtlFirstFreeAce (pAcl,
(PACE_HEADER*)pAce); (PACE*)pAce);
} }
@ -362,7 +362,7 @@ GetAce (
Status = RtlGetAce (pAcl, Status = RtlGetAce (pAcl,
dwAceIndex, dwAceIndex,
(PACE_HEADER*)pAce); (PACE*)pAce);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
SetLastError (RtlNtStatusToDosError (Status)); SetLastError (RtlNtStatusToDosError (Status));