This adds lots of pointer verification with ASSERTs only used when the condition should be impossible and never for memory allocation.
signed-off-by: jcarsey
reviewed-by: geekboy15a
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12524
6f19259b-4bc3-4df7-8a09-
765794883524
switch (WhatToDo) {\r
case FileTypeFileBuffer:\r
Status = HBufferImageRead (\r
- Name,\r
+ Name==NULL?L"":Name,\r
NULL,\r
0,\r
0,\r
case FileTypeDiskBuffer:\r
Status = HBufferImageRead (\r
NULL,\r
- Name,\r
+ Name==NULL?L"":Name,\r
Offset,\r
Size,\r
0,\r