mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 01:25:56 +00:00
[NTDLL_APITESTS]
Properly init string length svn path=/trunk/; revision=69305
This commit is contained in:
parent
2a99e6260e
commit
9fce9f4c34
1 changed files with 2 additions and 1 deletions
|
@ -36,13 +36,14 @@ START_TEST(RtlGenerate8dot3Name)
|
||||||
RtlZeroMemory(&Context, sizeof(GENERATE_NAME_CONTEXT));
|
RtlZeroMemory(&Context, sizeof(GENERATE_NAME_CONTEXT));
|
||||||
RtlInitUnicodeString(&LongName, Names[i]);
|
RtlInitUnicodeString(&LongName, Names[i]);
|
||||||
ShortName.Buffer = Buffer;
|
ShortName.Buffer = Buffer;
|
||||||
ShortName.Length = sizeof(Buffer);
|
ShortName.Length = 0;
|
||||||
ShortName.MaximumLength = sizeof(Buffer);
|
ShortName.MaximumLength = sizeof(Buffer);
|
||||||
|
|
||||||
RtlGenerate8dot3Name(&LongName, FALSE, &Context, &ShortName);
|
RtlGenerate8dot3Name(&LongName, FALSE, &Context, &ShortName);
|
||||||
RtlInitUnicodeString(&Expected, ShortNames1[i]);
|
RtlInitUnicodeString(&Expected, ShortNames1[i]);
|
||||||
ok(RtlEqualUnicodeString(&Expected, &ShortName, FALSE), "Generated: %.*S. Expected: %.*S\n", ShortName.Length, ShortName.Buffer, Expected.Length, Expected.Buffer);
|
ok(RtlEqualUnicodeString(&Expected, &ShortName, FALSE), "Generated: %.*S. Expected: %.*S\n", ShortName.Length, ShortName.Buffer, Expected.Length, Expected.Buffer);
|
||||||
|
|
||||||
|
ShortName.Length = 0;
|
||||||
RtlGenerate8dot3Name(&LongName, FALSE, &Context, &ShortName);
|
RtlGenerate8dot3Name(&LongName, FALSE, &Context, &ShortName);
|
||||||
RtlInitUnicodeString(&Expected, ShortNames2[i]);
|
RtlInitUnicodeString(&Expected, ShortNames2[i]);
|
||||||
ok(RtlEqualUnicodeString(&Expected, &ShortName, FALSE), "Generated: %.*S. Expected: %.*S\n", ShortName.Length, ShortName.Buffer, Expected.Length, Expected.Buffer);
|
ok(RtlEqualUnicodeString(&Expected, &ShortName, FALSE), "Generated: %.*S. Expected: %.*S\n", ShortName.Length, ShortName.Buffer, Expected.Length, Expected.Buffer);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue