https://bugs.winehq.org/show_bug.cgi?id=38564
--- Comment #3 from Dmitry Timoshkov dmitry@baikal.ru --- Created attachment 51463 --> https://bugs.winehq.org/attachment.cgi?id=51463 test application
Attached test replicates the problem. It looks like its source is in the COM apartment vs. multi-threaded mode mismatch. Both CoCreateInstance and AVIFileOpen calls in the test succeed under Windows but fail under Wine. Commenting out AVIFileInit() call has no effect under Windows, the calls still succeed.