mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Fixed compiler warnings.
svn path=/trunk/; revision=5089
This commit is contained in:
parent
e2154cb138
commit
6a67e42639
2 changed files with 9 additions and 17 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: registry.c,v 1.21 2003/07/11 13:50:23 royce Exp $
|
||||
/* $Id: registry.c,v 1.22 2003/07/11 23:58:45 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -89,7 +89,7 @@ RtlDeleteRegistryValue(IN ULONG RelativeTo,
|
|||
UNICODE_STRING Name;
|
||||
|
||||
Status = RtlpGetRegistryHandle(RelativeTo,
|
||||
Path,
|
||||
(PWSTR)Path,
|
||||
FALSE,
|
||||
&KeyHandle);
|
||||
if (!NT_SUCCESS(Status))
|
||||
|
@ -192,7 +192,7 @@ RtlQueryRegistryValues(IN ULONG RelativeTo,
|
|||
DPRINT("RtlQueryRegistryValues() called\n");
|
||||
|
||||
Status = RtlpGetRegistryHandle(RelativeTo,
|
||||
Path,
|
||||
(PWSTR)Path,
|
||||
FALSE,
|
||||
&BaseKeyHandle);
|
||||
if (!NT_SUCCESS(Status))
|
||||
|
@ -690,7 +690,7 @@ RtlWriteRegistryValue(IN ULONG RelativeTo,
|
|||
UNICODE_STRING Name;
|
||||
|
||||
Status = RtlpGetRegistryHandle(RelativeTo,
|
||||
Path,
|
||||
(PWSTR)Path,
|
||||
TRUE,
|
||||
&KeyHandle);
|
||||
if (!NT_SUCCESS(Status))
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: time.c,v 1.15 2003/07/11 13:50:23 royce Exp $
|
||||
/* $Id: time.c,v 1.16 2003/07/11 23:58:45 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -30,8 +30,8 @@
|
|||
#define DAYSPERLEAPYEAR 366
|
||||
#define MONSPERYEAR 12
|
||||
|
||||
#define TICKSTO1970 0x019db1ded53e8000
|
||||
#define TICKSTO1980 0x01a8e79fe1d58000
|
||||
#define TICKSTO1970 0x019db1ded53e8000LL
|
||||
#define TICKSTO1980 0x01a8e79fe1d58000LL
|
||||
|
||||
static const int YearLengths[2] = {DAYSPERNORMALYEAR, DAYSPERLEAPYEAR};
|
||||
static const int MonthLengths[2][MONSPERYEAR] =
|
||||
|
@ -219,11 +219,7 @@ RtlSecondsSince1970ToTime(
|
|||
ULONG SecondsSince1970,
|
||||
PLARGE_INTEGER Time)
|
||||
{
|
||||
LONGLONG llTime;
|
||||
|
||||
llTime = (SecondsSince1970 * TICKSPERSEC) + TICKSTO1970;
|
||||
|
||||
*Time = *(LARGE_INTEGER *)&llTime;
|
||||
Time->QuadPart = (SecondsSince1970 * TICKSPERSEC) + TICKSTO1970;
|
||||
}
|
||||
|
||||
|
||||
|
@ -236,11 +232,7 @@ RtlSecondsSince1980ToTime(
|
|||
ULONG SecondsSince1980,
|
||||
PLARGE_INTEGER Time)
|
||||
{
|
||||
LONGLONG llTime;
|
||||
|
||||
llTime = (SecondsSince1980 * TICKSPERSEC) + TICKSTO1980;
|
||||
|
||||
*Time = *(LARGE_INTEGER *)&llTime;
|
||||
Time->QuadPart = (SecondsSince1980 * TICKSPERSEC) + TICKSTO1980;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue