http://bugs.winehq.org/show_bug.cgi?id=17188
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com 2010-09-19 04:38:05 CDT --- Created an attachment (id=30863) --> (http://bugs.winehq.org/attachment.cgi?id=30863) test
Simple test shows that ::QueryInterface() on document for IPersistStreamInit doesn't touch document reference, and even more - ::AddRef() on IPersistStreamInit instance doesn't touch document references.
So we need to make IPersistStreamInit a separate object internally linked to document data.
Please let me know if you're ready to fix that.