http://bugs.winehq.org/show_bug.cgi?id=35339
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- This looks exactly like bug 31724 - FileAttribute enum is defined after interface forward definition that uses it. The problem is that widl generate a broken typelib in this case - enum is added twice and second time offset is overwritten, but interface keeps referencing it with old offset. Lookup obviously fails. I sent a patch for that:
http://www.winehq.org/pipermail/wine-patches/2014-March/131027.html