ole32: Accept STG_E_UNIMPLEMENTEDFUNCTION when ILockBytes implementation doesn't support locking.
dmitry at baikal.ru
Sat Jul 4 11:02:45 CDT 2015
Vincent Povirk <madewokherd at gmail.com> wrote:
> This looks OK to me, and if it fixes a regression I don't think we
> need a test case (though it never hurts).
> I don't think StorageImpl_LockRegionSync should be filtering these
> codes (the caller needs to know the difference between a failure and
> unimplemented function), though we should probably also fix the call
> inside StorageImpl_LockTransaction, the check in UnlockTransaction,
> and the check in StorageImpl_LockRegionSync. And it seems we also
> check for E_NOTIMPL when we call LockTransaction..
> Maybe an HR_IS_UNIMPLEMENTED macro would be warranted?
Not a macro, but probably an inline helper? Otherwise seems reasonable
thing to do to me.
More information about the wine-devel