https://bugs.winehq.org/show_bug.cgi?id=37185
--- Comment #13 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Saulius K. from comment #12)
Very nice. Can anyone explain me further: why on earth does this work in Windows? Or doesn't it?
Somehow in Windows the memory that is returned in the callback keeps allocated, maybe it's a fixed buffer that is loaded when the application first asks for the enumeration. I'm in the ways of fixing this, my first attempt was (which works currently) http://source.winehq.org/patches/data/108441 Now I have to change a few things and add tests.