http://bugs.winehq.org/show_bug.cgi?id=10472
--- Comment #10 from Claudio Freire freireclaudio@yahoo.com.ar 2009-07-20 16:33:56 --- Ok folks, this RAR has all the dependencies I believe:
http://www.deeplayer.com/claudio/orfeo/nsplib.rar
I could not test any of it with Wine 1.1.26, I'll try to build it at home and give it a try, and then report any changes regarding the original behavior.
In any case, I tracked the behavior to MFC code, so I'm not sure why Windows behaves better than wine, but wine seems to behave as advertised on Patform SDK docs.
Perhaps windows stores relative paths and thus consumes less of the small buffer than wine? Or perhaps wine under linux has longer paths than usual in windows?