Author: ion Date: Tue Jan 5 05:12:01 2016 New Revision: 70491 URL: http://svn.reactos.org/svn/reactos?rev=70491&view=rev Log: [BOOTMGFW]: Implement the rtlcompat functions, so that Rtl string functions will actually work. [HIVEBCD]: Start filling out a minimalistic BCD Hive layout to try out the BCD parsing/conversion code in my WC.
Modified: trunk/reactos/boot/bootdata/hivebcd.inf trunk/reactos/boot/environ/app/bootmgr/rtlcompat.c Modified: trunk/reactos/boot/bootdata/hivebcd.inf URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/hivebcd.inf?rev=70491&r1=70490&r2=70491&view=diff ============================================================================== --- trunk/reactos/boot/bootdata/hivebcd.inf [iso-8859-1] (original) +++ trunk/reactos/boot/bootdata/hivebcd.inf [iso-8859-1] Tue Jan 5 05:12:01 2016 @@ -6,6 +6,11 @@ BCD,"BCD00000000\Description\Control","System",0x00010003,1 BCD,"BCD00000000\Description\Control","TreatAtSystem",0x00010003,1 BCD,"BCD00000000\Description\Control","KeyName",2,"BCD00000000" -BCD,"BCD00000000\Objects",,0x00000012 + +BCD,"BCD00000000\Objects\{9dea862c-5cdd-4e70-acc1-f32b344d4795}\Description","Type",0x00010003,0x10100002 + +BCD,"BCD00000000\Objects\{9dea862c-5cdd-4e70-acc1-f32b344d4795}\Elements\12000002","Element",2,"\EFI\BOOT\BOOTIA32.EFI" +BCD,"BCD00000000\Objects\{9dea862c-5cdd-4e70-acc1-f32b344d4795}\Elements\12000004","Element",2,"ReactOS Boot Manager" +BCD,"BCD00000000\Objects\{9dea862c-5cdd-4e70-acc1-f32b344d4795}\Elements\12000005","Element",2,"en-US" ; EOF Modified: trunk/reactos/boot/environ/app/bootmgr/rtlcompat.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/environ/app/bootmgr/rtlcompat.c?rev=70491&r1=70490&r2=70491&view=diff ============================================================================== --- trunk/reactos/boot/environ/app/bootmgr/rtlcompat.c [iso-8859-1] (original) +++ trunk/reactos/boot/environ/app/bootmgr/rtlcompat.c [iso-8859-1] Tue Jan 5 05:12:01 2016 @@ -30,7 +30,8 @@ _In_ ULONG Tag ) { - return NULL; + UNREFERENCED_PARAMETER(Tag); + return BlMmAllocateHeap(Bytes); } VOID @@ -40,7 +41,8 @@ _In_ ULONG Tag ) { - return; + UNREFERENCED_PARAMETER(Tag); + BlMmFreeHeap(Mem); } NTSTATUS @@ -64,7 +66,11 @@ IN PCHAR Message OPTIONAL ) { - + EfiPrintf(L"*** ASSERTION %s FAILED AT %d in %s (%s) ***\r \n", + FailedAssertion, + LineNumber, + FileName, + Message); } ULONG @@ -73,6 +79,7 @@ ... ) { + EfiPrintf(L"%s\r\n", Format); return 0; }