EDK2: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
DSC file have been fixed; fix typos
m UefiMain.c didn't compile. Added ; after line 17. There was also to fee bytes allocated as str2 is L-string.
Line 144:
// Allocate a string
CHAR16* str = NULL;
gBS->AllocatePool(EfiLoaderData, 2036, (VOID**)&str);
// Copy over a string
CHAR16* str2 = L"Allocated string\r\n";
gBS->CopyMem((VOID*)str, (VOID*)str2, 2036);
Print(str);
gBS->FreePool(str);