mirror of https://github.com/acidanthera/audk.git
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:
parent
ffadc63799
commit
00dbccf2d5
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue