Skip to content

Commit

Permalink
Merge pull request #53 from MHumm/GDIError_Length
Browse files Browse the repository at this point in the history
JclGraphUtils GDIError: replaced SizeOf by Length
  • Loading branch information
ahausladen authored Apr 14, 2019
2 parents 5bc54fc + 779c80c commit 515af91
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 515af91

Please sign in to comment.