http://bugs.winehq.org/show_bug.cgi?id=20049
--- Comment #19 from Paul Vriens Paul.Vriens.Wine@gmail.com 2009-09-15 13:36:53 --- (In reply to comment #17)
Hi, passing to help and say the patch fixes the problem, tested under 1.1.28 and 29, but it left me thinking. Why the strlen function would not count the last charecter? It looks like a hack to add 1 =)
Adding the 1 is definitely not a hack. lstrlenW returns the length of the string without the terminating null character. CDM_GETFOLDERPATH on the other hand should report the length including that character.
The patch I've sent to wine-patches:
http://www.winehq.org/pipermail/wine-patches/2009-September/078516.html
includes a test and a fix.