Adding more strict resource checks on Windows Upstream-commit: f7b27ded4ac7cdcea7015e9eb55c4529dec3970d Component: engine