We've known that this is how Win32 behaves, as it was documented in
the ticket for which this is a fix. I don't think it's worth the
bother of ensuring we get EISDIR, as long as we don't just exit
silently!