mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2026-04-24 14:57:09 -05:00
fix(nvgpu): Initialize value of parameter to fix INVALID_ARGUMENT
As stated by the documentation in nvapi.h, path_info_count must be set to the value 0 in this case.
This commit is contained in:
parent
7943ecffcd
commit
ca9cac9c19
|
|
@ -174,7 +174,9 @@ static bool _display_config_get(const nv_api_t *nv_api, displayconfig_path_info_
|
|||
assert(nv_api);
|
||||
assert(displayconfig_path_info);
|
||||
|
||||
status = nv_api->NvAPI_DISP_GetDisplayConfig(&displayconfig_path_info->path_info_count , NULL);
|
||||
displayconfig_path_info->path_info_count = 0;
|
||||
|
||||
status = nv_api->NvAPI_DISP_GetDisplayConfig(&displayconfig_path_info->path_info_count, NULL);
|
||||
|
||||
if (status != NVAPI_OK) {
|
||||
PRINT_ERR_WITH_NVAPI_MESSAGE(status, "ERROR: Getting display config path info count");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user