Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jcl/source/vcl/JclGraphUtils.pas
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ procedure GDIError;
begin
ErrorCode := GetLastError;
if (ErrorCode <> 0) and (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, nil,
ErrorCode, LOCALE_USER_DEFAULT, Buf, SizeOf(Buf), nil) <> 0) then
ErrorCode, LOCALE_USER_DEFAULT, Buf, Length(Buf), nil) <> 0) then
raise EOutOfResources.Create(Buf)
else
OutOfResources;
Expand Down