mirror of
https://github.com/reactos/reactos.git
synced 2025-06-01 23:48:12 +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));
|
||||
RtlInitUnicodeString(&LongName, Names[i]);
|
||||
ShortName.Buffer = Buffer;
|
||||
ShortName.Length = sizeof(Buffer);
|
||||
ShortName.Length = 0;
|
||||
ShortName.MaximumLength = sizeof(Buffer);
|
||||
|
||||
RtlGenerate8dot3Name(&LongName, FALSE, &Context, &ShortName);
|
||||
RtlInitUnicodeString(&Expected, ShortNames1[i]);
|
||||
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);
|
||||
RtlInitUnicodeString(&Expected, ShortNames2[i]);
|
||||
ok(RtlEqualUnicodeString(&Expected, &ShortName, FALSE), "Generated: %.*S. Expected: %.*S\n", ShortName.Length, ShortName.Buffer, Expected.Length, Expected.Buffer);
|
||||
|
|
Loading…
Reference in a new issue