Yeah. Want something to be done - do it yourself.
Bug http://bugs.freepascal.org/view.php?id=19602 submitted
No need for sarcasme here.
I merely pointed out to you that the bugtracker is the place to report bugs.
As a matter of courtacy (from your side) I asked you to include your solution for the problem as well.
Doing so will speed up things (if your patch is correct, that is. I can't test, I do not have WinCE).
As a matter of courtesy from my side I pointed to the wiki articles. If you would want te get involved in the development of Fpc/Lazarus (solving bugs, adding functionality etc.) you really need to read them.
And from your efforts to solve the bug you reported, I gathered you might be interested in it.
Even if you do not participate in finding the solution (which you clearly did, or tried), we still are greatfull for bugs reported in Mantis.
Please, every now and then, check on the bugreport you filed: it is possible that some developer has questions for you regarding this bug.
For now,
Happy coding!
Bart