115,13 → 115,13 |
mov [file_size], ebx |
lea ebx, [hdr_cmdline] |
call test_app_header ; fill our app header data locals with values from header of given program (if its correct) |
mov esi, -0x1F |
mov esi, -ERROR_NOT_A_EXECUTABLE |
test eax, eax |
jz .err_hdr |
|
call lock_application_table |
call alloc_thread_slot ; create a slot for new thread |
mov esi, -0x20 ; too many processes |
mov esi, -ERROR_TOO_MANY_PROCESSES |
test eax, eax |
jz .err_0 |
|
163,7 → 163,7 |
@@: |
mov [cmdline_size], eax |
stdcall create_process, [hdr_emem] ; create a new process |
mov esi, -30 ; no memory |
mov esi, -ERROR_OUT_OF_MEMORY |
test eax, eax |
jz .err_hdr |
|