Note that before we go about fixing that we need to check all the callers in Wine, there are many places where we don't expect that behavior.
ok, I'll take a look at that
Also the GetLongPathNameW call won't do the right for a short buffer either.
yes, MSDN is not very clear about what is done when the buffer is too small (actually writting the string or not... which it doesn't when the buffer is too small, in opposition to GetModuleFileName)
I only wish that MS could at least be consistent in their API definition, but that's may be too much to be asked <g>
A+