mirror of https://github.com/acidanthera/audk.git
specify operand order
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9451 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ef34de257b
commit
6c88029b45
|
@ -1494,7 +1494,7 @@ ShellFindFilePath (
|
|||
|
||||
Path = ShellGetEnvironmentVariable(L"cwd");
|
||||
if (Path != NULL) {
|
||||
TestPath = AllocateZeroPool(StrSize(Path) + StrSize(FileName));
|
||||
TestPath = AllocateZeroPool((StrSize(Path) + StrSize(FileName)));
|
||||
StrCpy(TestPath, Path);
|
||||
StrCat(TestPath, FileName);
|
||||
Status = ShellOpenFileByName(TestPath, &Handle, EFI_FILE_MODE_READ, 0);
|
||||
|
@ -1508,7 +1508,7 @@ ShellFindFilePath (
|
|||
}
|
||||
Path = ShellGetEnvironmentVariable(L"path");
|
||||
if (Path != NULL) {
|
||||
TestPath = AllocateZeroPool(StrSize(Path)+StrSize(FileName) );
|
||||
TestPath = AllocateZeroPool((StrSize(Path)+StrSize(FileName)));
|
||||
Walker = (CHAR16*)Path;
|
||||
do {
|
||||
CopyMem(TestPath, Walker, StrSize(Walker));
|
||||
|
|
Loading…
Reference in New Issue