* applied patch by Cyrax to fix #24722, revertes partially r25054 which was wrong

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@25282 3ad0048d-3df7-0310-abae-a5850022a9f2