X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseMemoryLibRepStr%2FIa32%2FScanMem16.asm;h=c12eaff27aeed5acd7b6a250b7e73a4f2806a1f0;hb=cfe41b57abb8ba26e4bd1c0b09c8b3506a7c55df;hp=0ee190e46a49c037c8f76fe97bb36db948a85478;hpb=88a75d260cadc67cc0edf6ad5f57241ed89a7d4b;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.asm b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.asm index 0ee190e46a..c12eaff27a 100644 --- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.asm +++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.asm @@ -1,6 +1,6 @@ ;------------------------------------------------------------------------------ ; -; Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
+; Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. The full text of the license may be found at @@ -48,7 +48,9 @@ InternalMemScanMem16 PROC USES edi mov eax, [esp + 16] repne scasw lea eax, [edi - 2] - cmovnz eax, ecx + jz @F + mov eax, ecx +@@: ret InternalMemScanMem16 ENDP