mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 10:18:05 +02:00
cairocanvas: initialize vars
git-svn-id: trunk@42586 -
This commit is contained in:
parent
f3f8559736
commit
ac9e433e89
@ -178,7 +178,7 @@ function WriteToStream(closure: Pointer; data: PByte; length: LongWord): cairo_s
|
||||
var
|
||||
Stream: TStream absolute closure;
|
||||
begin
|
||||
if Stream.Write(data^, Length) = Length then
|
||||
if Stream.Write(data^, Length) = int64(Length) then
|
||||
result := CAIRO_STATUS_SUCCESS
|
||||
else
|
||||
result := CAIRO_STATUS_WRITE_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user