Sync bug fix in Edk r10821 to PeiMemoryLib and UefiMemoryLib instances.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10822 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2010-08-26 00:50:37 +00:00
parent ffadc63799
commit 00dbccf2d5
2 changed files with 8 additions and 8 deletions

View File

@ -163,7 +163,7 @@ InternalMemScanMem8 (
Pointer = (CONST UINT8*)Buffer;
do {
if (*(Pointer++) == Value) {
return Pointer;
return --Pointer;
}
} while (--Length != 0);
return NULL;
@ -193,7 +193,7 @@ InternalMemScanMem16 (
Pointer = (CONST UINT16*)Buffer;
do {
if (*(Pointer++) == Value) {
return Pointer;
return --Pointer;
}
} while (--Length != 0);
return NULL;
@ -223,7 +223,7 @@ InternalMemScanMem32 (
Pointer = (CONST UINT32*)Buffer;
do {
if (*(Pointer++) == Value) {
return Pointer;
return --Pointer;
}
} while (--Length != 0);
return NULL;
@ -253,7 +253,7 @@ InternalMemScanMem64 (
Pointer = (CONST UINT64*)Buffer;
do {
if (*(Pointer++) == Value) {
return Pointer;
return --Pointer;
}
} while (--Length != 0);
return NULL;

View File

@ -163,7 +163,7 @@ InternalMemScanMem8 (
Pointer = (CONST UINT8*)Buffer;
do {
if (*(Pointer++) == Value) {
return Pointer;
return --Pointer;
}
} while (--Length != 0);
return NULL;
@ -193,7 +193,7 @@ InternalMemScanMem16 (
Pointer = (CONST UINT16*)Buffer;
do {
if (*(Pointer++) == Value) {
return Pointer;
return --Pointer;
}
} while (--Length != 0);
return NULL;
@ -223,7 +223,7 @@ InternalMemScanMem32 (
Pointer = (CONST UINT32*)Buffer;
do {
if (*(Pointer++) == Value) {
return Pointer;
return --Pointer;
}
} while (--Length != 0);
return NULL;
@ -253,7 +253,7 @@ InternalMemScanMem64 (
Pointer = (CONST UINT64*)Buffer;
do {
if (*(Pointer++) == Value) {
return Pointer;
return --Pointer;
}
} while (--Length != 0);
return NULL;