mirror of https://github.com/acidanthera/audk.git
add fixes for code verification happyness.
signed-off-by: jcarsey reviewed-by: jljusten git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11935 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
92d4b03fcc
commit
f1518f6970
|
@ -95,6 +95,10 @@ IsValidProfile (
|
|||
CONST CHAR16 *TempLocation;
|
||||
|
||||
ProfilesString = ShellGetEnvironmentVariable(L"profiles");
|
||||
//
|
||||
// According to the Shell spec this is a required environment variable.
|
||||
//
|
||||
ASSERT(ProfileString != NULL);
|
||||
TempLocation = StrStr(ProfilesString, String);
|
||||
if ((TempLocation != NULL) && (*(TempLocation-1) == L';') && (*(TempLocation+StrLen(String)) == L';')) {
|
||||
return (TRUE);
|
||||
|
|
|
@ -254,6 +254,11 @@ ValidateAndCopyFiles(
|
|||
ASSERT(FileList != NULL);
|
||||
ASSERT(DestDir != NULL);
|
||||
|
||||
//
|
||||
// We already verified that this was present.
|
||||
//
|
||||
ASSERT(Cwd != NULL);
|
||||
|
||||
//
|
||||
// If we are trying to copy multiple files... make sure we got a directory for the target...
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue