fix off-by-one error in disk cache, existing at least since r580

git-svn-id: svn://kolibrios.org@4133 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2013-10-29 17:45:24 +00:00
parent e8f2803376
commit 89f9caf0b6

View File

@ -512,7 +512,7 @@ disk_init_cache:
push edi push edi
mov edi, [esi+DISK.SysCache.pointer] mov edi, [esi+DISK.SysCache.pointer]
lea ecx, [ecx*3] lea ecx, [(ecx+1)*3]
xor eax, eax xor eax, eax
rep stosd rep stosd
pop edi pop edi
@ -527,7 +527,7 @@ disk_init_cache:
push edi push edi
mov edi, [esi+DISK.AppCache.pointer] mov edi, [esi+DISK.AppCache.pointer]
lea ecx, [ecx*3] lea ecx, [(ecx+1)*3]
xor eax, eax xor eax, eax
rep stosd rep stosd
pop edi pop edi