i8254x driver: Corrected return flags for transmit procedure.

git-svn-id: svn://kolibrios.org@4521 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2014-01-23 15:01:01 +00:00
parent 730070df44
commit 6471aac71c

View File

@ -754,15 +754,15 @@ proc transmit stdcall bufferptr, buffersize
add dword[device.bytes_tx], eax
adc dword[device.bytes_tx + 4], 0
xor eax, eax
popf
xor eax, eax
ret
.fail:
DEBUGF 2,"Send failed\n"
stdcall KernelFree, [bufferptr]
or eax, -1
popf
or eax, -1
ret
endp