mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:33:07 +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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -18,11 +18,12 @@
|
||||||
|
|
||||||
/* FUNCTIONS ***************************************************************/
|
/* FUNCTIONS ***************************************************************/
|
||||||
|
|
||||||
VOID NTAPI RtlRunDecodeUnicodeString
|
VOID
|
||||||
(
|
NTAPI
|
||||||
IN UCHAR hash,
|
RtlRunDecodeUnicodeString(
|
||||||
IN OUT PUNICODE_STRING uString
|
IN UCHAR hash,
|
||||||
)
|
IN OUT PUNICODE_STRING uString
|
||||||
|
)
|
||||||
{
|
{
|
||||||
UCHAR *ptr;
|
UCHAR *ptr;
|
||||||
WORD i;
|
WORD i;
|
||||||
|
@ -39,11 +40,12 @@ VOID NTAPI RtlRunDecodeUnicodeString
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID NTAPI RtlRunEncodeUnicodeString
|
VOID
|
||||||
(
|
NTAPI
|
||||||
IN OUT PUCHAR hash,
|
RtlRunEncodeUnicodeString(
|
||||||
IN OUT PUNICODE_STRING uString
|
IN OUT PUCHAR hash,
|
||||||
)
|
IN OUT PUNICODE_STRING uString
|
||||||
|
)
|
||||||
{
|
{
|
||||||
NTSTATUS ntS;
|
NTSTATUS ntS;
|
||||||
UCHAR *ptr;
|
UCHAR *ptr;
|
||||||
|
@ -52,7 +54,7 @@ VOID NTAPI RtlRunEncodeUnicodeString
|
||||||
|
|
||||||
ptr = (UCHAR *) uString->Buffer;
|
ptr = (UCHAR *) uString->Buffer;
|
||||||
if (*hash == 0) {
|
if (*hash == 0) {
|
||||||
ntS = NtQuerySystemTime(&CurrentTime);
|
ntS = NtQuerySystemTime((PLARGE_INTEGER)&CurrentTime);
|
||||||
if (NT_SUCCESS(ntS)) {
|
if (NT_SUCCESS(ntS)) {
|
||||||
for (i=1; i<sizeof(TIME) && (*hash == 0); i++)
|
for (i=1; i<sizeof(TIME) && (*hash == 0); i++)
|
||||||
*hash |= *(PUCHAR) (((PUCHAR) &CurrentTime)+i);
|
*hash |= *(PUCHAR) (((PUCHAR) &CurrentTime)+i);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue