The contents of Buffer are undefined with EFI_BUFFER_TOO_SMALL. Some 
implementations may return data in this case, although this is a bit sloppy. 
Only BufferSize is guaranteed to be updated. The guaranteed behavior is as 
described in the UEFI specification.

Tim

-----Original Message-----
From: jagannath rath [mailto:jagannath.p.r...@gmail.com] 
Sent: Sunday, February 03, 2013 12:16 PM
To: edk2-devel
Subject: [edk2] Should LocateHandle return EFI_BUFFER_TOO_SMALL or 
EFI_WARN_BUFFER_TOO_SMALL

Hello,

The gBS->LocateHandle returns EFI_BUFFER_TOO_SMALL if the size of the buffer is 
small for the result.
It actually does return the truncated data in the buffer.
Hence should the return type not be EFI_WARN_BUFFER_TOO_SMALL as the buffer 
data is being truncated.

Please point out if I am missing out on something.

Thanks and Regards,
Jagannath Prasad Rath

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free 
today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to