forked from KolibriOS/kolibrios
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user