1c2c66affSColin Finck /*
2c2c66affSColin Finck  * PROJECT:         ReactOS API tests
3c2c66affSColin Finck  * LICENSE:         LGPLv2.1+ - See COPYING.LIB in the top level directory
4c2c66affSColin Finck  * PURPOSE:         Test for RtlUpcaseUnicodeStringToCountedOemString
5c2c66affSColin Finck  * PROGRAMMER:      Thomas Faber <thomas.faber@reactos.org>
6c2c66affSColin Finck  */
7c2c66affSColin Finck 
8*283bbe73SAmine Khaldi #include "precomp.h"
9c2c66affSColin Finck 
START_TEST(RtlUpcaseUnicodeStringToCountedOemString)10c2c66affSColin Finck START_TEST(RtlUpcaseUnicodeStringToCountedOemString)
11c2c66affSColin Finck {
12c2c66affSColin Finck     NTSTATUS Status;
13c2c66affSColin Finck     UNICODE_STRING Name;
14c2c66affSColin Finck     CHAR OemNameBuffer[13];
15c2c66affSColin Finck     OEM_STRING OemName;
16c2c66affSColin Finck 
17c2c66affSColin Finck     RtlInitUnicodeString(&Name, L"\x00ae");
18c2c66affSColin Finck     RtlFillMemory(OemNameBuffer, sizeof(OemNameBuffer), 0x55);
19c2c66affSColin Finck     OemName.Buffer = OemNameBuffer;
20c2c66affSColin Finck     OemName.Length = 0;
21c2c66affSColin Finck     OemName.MaximumLength = sizeof(OemNameBuffer);
22c2c66affSColin Finck     Status = RtlUpcaseUnicodeStringToCountedOemString(&OemName, &Name, FALSE);
23c2c66affSColin Finck     ok(Status == STATUS_SUCCESS, "Status = 0x%lx\n", Status);
24c2c66affSColin Finck     ok(OemName.Length == 1, "OemName.Length = %u\n", OemName.Length);
25c2c66affSColin Finck     ok(OemNameBuffer[0] == 'R', "OemNameBuffer[0] = 0x%x\n", OemNameBuffer[0]);
26c2c66affSColin Finck     ok(OemNameBuffer[1] == 0x55, "OemNameBuffer[1] = 0x%x\n", OemNameBuffer[1]);
27c2c66affSColin Finck     ok(OemNameBuffer[2] == 0x55, "OemNameBuffer[2] = 0x%x\n", OemNameBuffer[2]);
28c2c66affSColin Finck }
29