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