mirror of
https://github.com/reactos/reactos.git
synced 2024-07-07 13:15:07 +00:00
[ntstrsafe.h]
- Fix a number of parameter types (LPSTR/LPCSTR instead of PCHAR, PCCHAR) This is not the same, PCCHAR is a char * not a const char * svn path=/trunk/; revision=47497
This commit is contained in:
parent
76a1e465ea
commit
fa63efd411
|
@ -36,7 +36,7 @@ typedef unsigned long DWORD;
|
||||||
__inline
|
__inline
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlStringLengthWorkerA(IN PCHAR String,
|
RtlStringLengthWorkerA(IN LPCSTR String,
|
||||||
IN SIZE_T MaxLength,
|
IN SIZE_T MaxLength,
|
||||||
OUT PSIZE_T ReturnLength OPTIONAL)
|
OUT PSIZE_T ReturnLength OPTIONAL)
|
||||||
{
|
{
|
||||||
|
@ -69,7 +69,7 @@ RtlStringLengthWorkerA(IN PCHAR String,
|
||||||
__inline
|
__inline
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlStringValidateDestA(IN PCHAR Destination,
|
RtlStringValidateDestA(IN LPSTR Destination,
|
||||||
IN SIZE_T Length,
|
IN SIZE_T Length,
|
||||||
OUT PSIZE_T ReturnLength OPTIONAL,
|
OUT PSIZE_T ReturnLength OPTIONAL,
|
||||||
IN SIZE_T MaxLength)
|
IN SIZE_T MaxLength)
|
||||||
|
@ -98,7 +98,7 @@ RtlStringValidateDestA(IN PCHAR Destination,
|
||||||
__inline
|
__inline
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlStringExValidateDestA(IN OUT PCHAR *Destination,
|
RtlStringExValidateDestA(IN OUT LPSTR *Destination,
|
||||||
IN OUT PSIZE_T DestinationLength,
|
IN OUT PSIZE_T DestinationLength,
|
||||||
OUT PSIZE_T ReturnLength OPTIONAL,
|
OUT PSIZE_T ReturnLength OPTIONAL,
|
||||||
IN SIZE_T MaxLength,
|
IN SIZE_T MaxLength,
|
||||||
|
@ -114,7 +114,7 @@ RtlStringExValidateDestA(IN OUT PCHAR *Destination,
|
||||||
__inline
|
__inline
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlStringExValidateSrcA(IN OUT PCCHAR *Source OPTIONAL,
|
RtlStringExValidateSrcA(IN OUT LPCSTR *Source OPTIONAL,
|
||||||
IN OUT PSIZE_T ReturnLength OPTIONAL,
|
IN OUT PSIZE_T ReturnLength OPTIONAL,
|
||||||
IN SIZE_T MaxLength,
|
IN SIZE_T MaxLength,
|
||||||
IN DWORD Flags)
|
IN DWORD Flags)
|
||||||
|
@ -133,10 +133,10 @@ RtlStringExValidateSrcA(IN OUT PCCHAR *Source OPTIONAL,
|
||||||
__inline
|
__inline
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlStringVPrintfWorkerA(OUT PCHAR Destination,
|
RtlStringVPrintfWorkerA(OUT LPSTR Destination,
|
||||||
IN SIZE_T Length,
|
IN SIZE_T Length,
|
||||||
OUT PSIZE_T NewLength OPTIONAL,
|
OUT PSIZE_T NewLength OPTIONAL,
|
||||||
IN PCCHAR Format,
|
IN LPCSTR Format,
|
||||||
IN va_list argList)
|
IN va_list argList)
|
||||||
{
|
{
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
|
@ -174,10 +174,10 @@ RtlStringVPrintfWorkerA(OUT PCHAR Destination,
|
||||||
__inline
|
__inline
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlStringCopyWorkerA(OUT PCHAR Destination,
|
RtlStringCopyWorkerA(OUT LPSTR Destination,
|
||||||
IN SIZE_T Length,
|
IN SIZE_T Length,
|
||||||
OUT PSIZE_T NewLength OPTIONAL,
|
OUT PSIZE_T NewLength OPTIONAL,
|
||||||
IN PCCHAR Source,
|
IN LPCSTR Source,
|
||||||
IN SIZE_T CopyLength)
|
IN SIZE_T CopyLength)
|
||||||
{
|
{
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
|
@ -211,9 +211,9 @@ RtlStringCopyWorkerA(OUT PCHAR Destination,
|
||||||
__inline
|
__inline
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlStringCchCopyA(IN PCHAR Destination,
|
RtlStringCchCopyA(IN LPSTR Destination,
|
||||||
IN SIZE_T cchDest,
|
IN SIZE_T cchDest,
|
||||||
IN PCCHAR pszSrc)
|
IN LPCSTR pszSrc)
|
||||||
{
|
{
|
||||||
ASSERTMSG("RtlStringCchCopyA is UNIMPLEMENTED!\n", FALSE);
|
ASSERTMSG("RtlStringCchCopyA is UNIMPLEMENTED!\n", FALSE);
|
||||||
return STATUS_NOT_IMPLEMENTED;
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
|
@ -222,9 +222,9 @@ RtlStringCchCopyA(IN PCHAR Destination,
|
||||||
__inline
|
__inline
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlStringCbPrintfA(OUT PCHAR Destination,
|
RtlStringCbPrintfA(OUT LPSTR Destination,
|
||||||
IN SIZE_T Length,
|
IN SIZE_T Length,
|
||||||
IN PCHAR Format,
|
IN LPCSTR Format,
|
||||||
...)
|
...)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -252,12 +252,12 @@ RtlStringCbPrintfA(OUT PCHAR Destination,
|
||||||
__inline
|
__inline
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlStringCbPrintfExA(OUT PCHAR Destination,
|
RtlStringCbPrintfExA(OUT LPSTR Destination,
|
||||||
IN SIZE_T Length,
|
IN SIZE_T Length,
|
||||||
OUT PCHAR *DestinationEnd OPTIONAL,
|
OUT LPSTR *DestinationEnd OPTIONAL,
|
||||||
OUT PSIZE_T RemainingSize OPTIONAL,
|
OUT PSIZE_T RemainingSize OPTIONAL,
|
||||||
IN DWORD Flags,
|
IN DWORD Flags,
|
||||||
IN PCCHAR Format,
|
IN LPCSTR Format,
|
||||||
...)
|
...)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -333,10 +333,10 @@ RtlStringCbPrintfExA(OUT PCHAR Destination,
|
||||||
__inline
|
__inline
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlStringCbCopyExA(OUT PCHAR Destination,
|
RtlStringCbCopyExA(OUT LPSTR Destination,
|
||||||
IN SIZE_T Length,
|
IN SIZE_T Length,
|
||||||
IN PCCHAR Source,
|
IN LPCSTR Source,
|
||||||
OUT PCHAR *DestinationEnd OPTIONAL,
|
OUT LPSTR *DestinationEnd OPTIONAL,
|
||||||
OUT PSIZE_T RemainingSize OPTIONAL,
|
OUT PSIZE_T RemainingSize OPTIONAL,
|
||||||
IN DWORD Flags)
|
IN DWORD Flags)
|
||||||
{
|
{
|
||||||
|
@ -423,10 +423,10 @@ RtlStringCbPrintfW(
|
||||||
__inline
|
__inline
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlStringCbCatExA(IN OUT PCHAR Destination,
|
RtlStringCbCatExA(IN OUT LPSTR Destination,
|
||||||
IN SIZE_T Length,
|
IN SIZE_T Length,
|
||||||
IN PCCHAR Source,
|
IN LPCSTR Source,
|
||||||
OUT PCHAR *DestinationEnd OPTIONAL,
|
OUT LPSTR *DestinationEnd OPTIONAL,
|
||||||
OUT PSIZE_T RemainingSize OPTIONAL,
|
OUT PSIZE_T RemainingSize OPTIONAL,
|
||||||
IN DWORD Flags)
|
IN DWORD Flags)
|
||||||
{
|
{
|
||||||
|
@ -497,9 +497,9 @@ RtlStringCbCatExA(IN OUT PCHAR Destination,
|
||||||
__inline
|
__inline
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlStringCbCopyA(OUT PCHAR Destination,
|
RtlStringCbCopyA(OUT LPSTR Destination,
|
||||||
IN SIZE_T Length,
|
IN SIZE_T Length,
|
||||||
IN PCCHAR Source)
|
IN LPCSTR Source)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
SIZE_T CharLength = Length / sizeof(CHAR);
|
SIZE_T CharLength = Length / sizeof(CHAR);
|
||||||
|
|
Loading…
Reference in a new issue