https://bugs.winehq.org/show_bug.cgi?id=37202
--- Comment #7 from Vincent Povirk madewokherd@gmail.com --- Well, I can't figure out how Word is able to detect this situation in 2 or 0 seconds, when in my own testing with StgOpenStorage it takes 20 seconds to fail, and Word doesn't seem to be doing anything special.
I guess I can add the 20 second timeout (which I suspect will mean a 40 second hang in Word, because that's what happens in Word on Windows if I set a read-only lock for the entire file), or I can use read locks to test for this situation in a way that should be compatible with Windows but that I know isn't what Windows does.
I guess I'll try both and see what happens.