mirror of https://github.com/acidanthera/audk.git
ShellPkg: explicitly prevent dereferencing pointer
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com> reviewed-by: Erik Bjorge <Erik.c.Bjorge@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14291 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
93723244c8
commit
0290177adf
|
@ -219,7 +219,7 @@ CopySingleFile(
|
|||
//
|
||||
//check if enough space available on destination drive to complete copy
|
||||
//
|
||||
if (DestVolumeInfo->FreeSpace < SourceFileSize) {
|
||||
if (DestVolumeInfo!= NULL && (DestVolumeInfo->FreeSpace < SourceFileSize)) {
|
||||
//
|
||||
//not enough space on destination directory to copy file
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue