mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2025-02-25 22:28:11 +01:00
fix(nvgpu): Missing error handling not returning (#333)
If fetching the configuration fails, don’t continue with processing any non-existing data.
This commit is contained in:
parent
366f0090a9
commit
9a7285bb91
@ -666,7 +666,9 @@ static bool _display_config_print(const nv_api_t *nv_api, NvU32 display_id)
|
||||
|
||||
assert(nv_api);
|
||||
|
||||
_display_config_get(nv_api, &displayconfig_path_info);
|
||||
if (!_display_config_get(nv_api, &displayconfig_path_info)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (display_id != 0) {
|
||||
printfln_err("Applying display ID filter: %lX", display_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user