[Bug 46256] EndUpdateResourceW should set errno on invalid handle