It turns out I broke the folding in the fixes I made to get it to compile on MSVC6, which does not allow void functions to return data. I will have to look at this more carefully, perhaps the correct change would have been to change the declaration of the function.
Anyway, false alarm. There is no problem with the folding, sorry to waste your time on that.
Bookmarks