mirror of
https://github.com/reactos/reactos.git
synced 2025-06-26 22:59:44 +00:00
[REACTOS] Fix SIZE_T related warnings
This commit is contained in:
parent
826704ba6b
commit
7611cc2b12
21 changed files with 103 additions and 46 deletions
|
@ -515,7 +515,7 @@ RtlIpv6AddressToStringA(
|
|||
ASSERT(Result >= Buffer);
|
||||
ASSERT(Result < Buffer + RTL_NUMBER_OF(Buffer));
|
||||
|
||||
Status = RtlUnicodeToMultiByteN(S, RTLIPV6A2S_MAX_LEN, NULL, Buffer, (wcslen(Buffer) + 1) * sizeof(WCHAR));
|
||||
Status = RtlUnicodeToMultiByteN(S, RTLIPV6A2S_MAX_LEN, NULL, Buffer, (ULONG)(wcslen(Buffer) + 1) * sizeof(WCHAR));
|
||||
if (!NT_SUCCESS(Status))
|
||||
return (PSTR)~0;
|
||||
|
||||
|
@ -544,7 +544,7 @@ RtlIpv6AddressToStringExA(
|
|||
if (!NT_SUCCESS(Status))
|
||||
return Status;
|
||||
|
||||
Status = RtlUnicodeToMultiByteN(AddressString, RTLIPV6A2SEX_MAX_LEN, NULL, Buffer, (wcslen(Buffer) + 1) * sizeof(WCHAR));
|
||||
Status = RtlUnicodeToMultiByteN(AddressString, RTLIPV6A2SEX_MAX_LEN, NULL, Buffer, (*AddressStringLength + 1) * sizeof(WCHAR));
|
||||
if (!NT_SUCCESS(Status))
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue