https://bugs.winehq.org/show_bug.cgi?id=34332
--- Comment #15 from Anastasius Focht focht@gmx.net --- Hello folks,
the game engine first queries for the buffer size, passing zero length. It checks for 'ERROR_INSUFFICIENT_BUFFER' last error, allocates the required buffer on heap and then expects the data in second attempt.
Some example code that shows a similar way what the game is looking for (excluding NUMA part):
https://github.com/erikarn/intel-pcm/blob/master/src/cpucounters.cpp#L465
Also useful:
https://stackoverflow.com/questions/14093267/confusing-returnlength-from-win...
With that part fixed the game runs into bug 36549
Regards