Fixed the return value of ReCreateDeviceResources.