Before, the code treated any errors other than DXGI_ERROR_NOT_FOUND as if they were successes, which is incorrect.