Author: pschweitzer
Date: Mon Sep 28 08:53:31 2015
New Revision: 69392
URL:
http://svn.reactos.org/svn/reactos?rev=69392&view=rev
Log:
[NTDLL_APITEST]
*.S expects length in chars
Modified:
trunk/rostests/apitests/ntdll/RtlGenerate8dot3Name.c
Modified: trunk/rostests/apitests/ntdll/RtlGenerate8dot3Name.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/ntdll/RtlGenerat…
==============================================================================
--- trunk/rostests/apitests/ntdll/RtlGenerate8dot3Name.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/ntdll/RtlGenerate8dot3Name.c [iso-8859-1] Mon Sep 28 08:53:31
2015
@@ -43,22 +43,22 @@
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);
+ ok(RtlEqualUnicodeString(&Expected, &ShortName, FALSE), "Generated:
%.*S. Expected: %.*S\n", ShortName.Length / sizeof(WCHAR), ShortName.Buffer,
Expected.Length / sizeof(WCHAR), 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);
+ ok(RtlEqualUnicodeString(&Expected, &ShortName, FALSE), "Generated:
%.*S. Expected: %.*S\n", ShortName.Length / sizeof(WCHAR), ShortName.Buffer,
Expected.Length / sizeof(WCHAR), Expected.Buffer);
RtlZeroMemory(&Context, sizeof(GENERATE_NAME_CONTEXT));
ShortName.Length = 0;
RtlGenerate8dot3Name(&LongName, TRUE, &Context, &ShortName);
RtlInitUnicodeString(&Expected, ExShortNames1[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 / sizeof(WCHAR), ShortName.Buffer,
Expected.Length / sizeof(WCHAR), Expected.Buffer);
ShortName.Length = 0;
RtlGenerate8dot3Name(&LongName, TRUE, &Context, &ShortName);
RtlInitUnicodeString(&Expected, ExShortNames2[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 / sizeof(WCHAR), ShortName.Buffer,
Expected.Length / sizeof(WCHAR), Expected.Buffer);
}
}