small fix in the read_port function : without this, it can crash the kernel when using mydebugger !
This commit is contained in:
@@ -132,7 +132,7 @@ function write_port(port : port_id; code : Longint; const buf : Pointer;
|
|||||||
buf_size : size_t)
|
buf_size : size_t)
|
||||||
: status_t; cdecl; external 'root' name 'write_port';
|
: status_t; cdecl; external 'root' name 'write_port';
|
||||||
|
|
||||||
function read_port(port : port_id; code : Longint; buf : Pointer;
|
function read_port(port : port_id; var code : Longint; buf : Pointer;
|
||||||
buf_size : size_t)
|
buf_size : size_t)
|
||||||
: status_t; cdecl; external 'root' name 'read_port';
|
: status_t; cdecl; external 'root' name 'read_port';
|
||||||
|
|
||||||
@@ -731,4 +731,4 @@ initialization
|
|||||||
B_INFINITE_TIMEOUT := Int64($7FFFFFFF) shl 32 + Int64($FFFFFFFF);
|
B_INFINITE_TIMEOUT := Int64($7FFFFFFF) shl 32 + Int64($FFFFFFFF);
|
||||||
{$endif VER1_0}
|
{$endif VER1_0}
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
Reference in New Issue
Block a user