fixed wrong COFF size calculations in load_driver and load_library

git-svn-id: svn://kolibrios.org@206 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2006-11-03 15:19:15 +00:00
parent 3eda462807
commit 7c1c3a07a8
3 changed files with 13 additions and 10 deletions

View File

@@ -257,8 +257,8 @@ proc alloc_kernel_space stdcall, size:dword
cli
mov eax, [size]
add eax, 0xFFF
and eax, 0xFFFFF000;
add eax, 4095
and eax, not 4095
mov [size], eax
cmp eax, [heap_free]
ja .error
@@ -499,8 +499,8 @@ proc kernel_alloc stdcall, size:dword
endl
mov eax, [size]
add eax, 0xFFF
and eax, 0xFFFFF000;
add eax, 4095
and eax, not 4095;
mov [size], eax
and eax, eax
jz .error