mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
cast away warning, reformatted function definition to conform to standard.
svn path=/trunk/; revision=5332
This commit is contained in:
parent
8bd2e4e942
commit
98f9507c1e
1 changed files with 14 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: encode.c,v 1.1 2003/04/02 00:01:21 hyperion Exp $
|
||||
/* $Id: encode.c,v 1.2 2003/07/30 18:35:03 royce Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -18,11 +18,12 @@
|
|||
|
||||
/* FUNCTIONS ***************************************************************/
|
||||
|
||||
VOID NTAPI RtlRunDecodeUnicodeString
|
||||
(
|
||||
IN UCHAR hash,
|
||||
IN OUT PUNICODE_STRING uString
|
||||
)
|
||||
VOID
|
||||
NTAPI
|
||||
RtlRunDecodeUnicodeString(
|
||||
IN UCHAR hash,
|
||||
IN OUT PUNICODE_STRING uString
|
||||
)
|
||||
{
|
||||
UCHAR *ptr;
|
||||
WORD i;
|
||||
|
@ -39,11 +40,12 @@ VOID NTAPI RtlRunDecodeUnicodeString
|
|||
}
|
||||
}
|
||||
|
||||
VOID NTAPI RtlRunEncodeUnicodeString
|
||||
(
|
||||
IN OUT PUCHAR hash,
|
||||
IN OUT PUNICODE_STRING uString
|
||||
)
|
||||
VOID
|
||||
NTAPI
|
||||
RtlRunEncodeUnicodeString(
|
||||
IN OUT PUCHAR hash,
|
||||
IN OUT PUNICODE_STRING uString
|
||||
)
|
||||
{
|
||||
NTSTATUS ntS;
|
||||
UCHAR *ptr;
|
||||
|
@ -52,7 +54,7 @@ VOID NTAPI RtlRunEncodeUnicodeString
|
|||
|
||||
ptr = (UCHAR *) uString->Buffer;
|
||||
if (*hash == 0) {
|
||||
ntS = NtQuerySystemTime(&CurrentTime);
|
||||
ntS = NtQuerySystemTime((PLARGE_INTEGER)&CurrentTime);
|
||||
if (NT_SUCCESS(ntS)) {
|
||||
for (i=1; i<sizeof(TIME) && (*hash == 0); i++)
|
||||
*hash |= *(PUCHAR) (((PUCHAR) &CurrentTime)+i);
|
||||
|
|
Loading…
Reference in a new issue