diff --git a/src/detection/gpu/gpu_windows.cpp b/src/detection/gpu/gpu_windows.cpp index 4146fc53e..8e6d74ef2 100644 --- a/src/detection/gpu/gpu_windows.cpp +++ b/src/detection/gpu/gpu_windows.cpp @@ -149,8 +149,9 @@ extern "C" const char* ffDetectGPUImpl(FFlist* gpus, FF_MAYBE_UNUSED const FFinstance* instance) { if (instance->config.allowSlowOperations) - detectWithWmi(gpus); - else if (!detectWithRegistry(gpus)) + return detectWithWmi(gpus); + + if (!detectWithRegistry(gpus)) return nullptr; return detectWithDxgi(gpus); }