Actually, I think the test is just the wrong way round. It should read
if (STGM_SHARE_MODE(grfMode) != STGM_SHARE_EXCLUSIVE)
I screwed it up in the following commit: http://cvs.winehq.org/cvsweb/wine/dlls/ole32/storage32.c.diff?r1=1.71&r2...
Mike
Troy Rollo wrote:
StgOpenStorage was failing if pwcsName was NULL and the share flags were STGM_SHARE_EXCLUSIVE. It shouldn't (Windows allows this).
ChangeLog: Allow STGM_SHARE_EXCLUSIVE for StgOpenStorage with pwcsName == NULL
- if (STGM_SHARE_MODE(grfMode) == STGM_SHARE_EXCLUSIVE)
goto end;