* minor optimization (don't clear the result of GetDynLibsErrorStr twice)

git-svn-id: trunk@28948 -
This commit is contained in:
Tomas Hajny 2014-10-30 14:52:34 +00:00
parent 8cd2b615ce
commit 6c17c9cb29

View File

@ -113,8 +113,9 @@ var
RetMsgSize: cardinal;
RC: cardinal;
begin
GetDynLibsErrorStr := '';
if DynLibErrNo <> 0 then
if DynLibErrNo = 0 then
GetDynLibsErrorStr := ''
else
begin
Result := '';
VarArr [1] := @DynLibErrPath [0];