Heh, it turns out FPC was being a smartass, using a fossilized *.res file when it was explicitly told to use the *.rc one.

On a side note, I corrected an exceptionally stupid blunder of mine (Damaramu's blunder of a lifetime!) that was causing critical sections to deadlock in wine.Because when you call Exit() (C analog: return) from inside of a try...finally block, the finally section, naturally, executes. How could I been thinking otherwise