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:
@ -1494,7 +1494,7 @@ ShellFindFilePath (
|
|||||||
|
|
||||||
Path = ShellGetEnvironmentVariable(L"cwd");
|
Path = ShellGetEnvironmentVariable(L"cwd");
|
||||||
if (Path != NULL) {
|
if (Path != NULL) {
|
||||||
TestPath = AllocateZeroPool(StrSize(Path) + StrSize(FileName));
|
TestPath = AllocateZeroPool((StrSize(Path) + StrSize(FileName)));
|
||||||
StrCpy(TestPath, Path);
|
StrCpy(TestPath, Path);
|
||||||
StrCat(TestPath, FileName);
|
StrCat(TestPath, FileName);
|
||||||
Status = ShellOpenFileByName(TestPath, &Handle, EFI_FILE_MODE_READ, 0);
|
Status = ShellOpenFileByName(TestPath, &Handle, EFI_FILE_MODE_READ, 0);
|
||||||
@ -1508,7 +1508,7 @@ ShellFindFilePath (
|
|||||||
}
|
}
|
||||||
Path = ShellGetEnvironmentVariable(L"path");
|
Path = ShellGetEnvironmentVariable(L"path");
|
||||||
if (Path != NULL) {
|
if (Path != NULL) {
|
||||||
TestPath = AllocateZeroPool(StrSize(Path)+StrSize(FileName) );
|
TestPath = AllocateZeroPool((StrSize(Path)+StrSize(FileName)));
|
||||||
Walker = (CHAR16*)Path;
|
Walker = (CHAR16*)Path;
|
||||||
do {
|
do {
|
||||||
CopyMem(TestPath, Walker, StrSize(Walker));
|
CopyMem(TestPath, Walker, StrSize(Walker));
|
||||||
|
Reference in New Issue
Block a user