Hello, I am trying write in file in the USB device, I am using the protocol
EFI_SIMPLE_FILE_SYSTEM_PROTOCOL with EFI_FILE_PROTOCOL,The file is create
and opened,but I don't get to write, in the file shows only first letter.
Someone help me?
Status = gBS->LocateHandleBuffer(ByProtocol,
&gSimpleFileProtocol,
NULL,
&numFile,
&fileHandle);
if(!EFI_ERROR(Status))
{
for(index = 0;index < numFile;index++)
{
Status = gBS->HandleProtocol(fileHandle[index],
&gSimpleFileProtocol,
(VOID **)&fileSystemProtocol);
if(!EFI_ERROR(Status))
{
Status = fileSystemProtocol->OpenVolume(fileSystemProtocol,
&root);
if(!EFI_ERROR(Status))
{
Print(L"\nTexto: %s",texto);
Status = root->Open(root,
&newHandle,
L"teste.txt",
EFI_FILE_MODE_CREATE | EFI_FILE_MODE_READ
| EFI_FILE_MODE_WRITE,
0);
if(!EFI_ERROR(Status))
{
BufferSize = 128;
Print(L"Status root->Open(): %r\n", Status);
Status = root->Write(newHandle,
&BufferSize,
texto);
}
Print(L"\nStatus do Write: %r\n",Status);
root->Close(newHandle);
Print(L"\nstatus Close :%r\n",Status);
break;
}
}
}
}
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel