Browse Source

Set iSize for thermal device enum first.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
990bb4a994
  1. 1
      adl.c

1
adl.c

@ -234,6 +234,7 @@ void init_adl(int nDevs)
ga->lpAdapterID = lpAdapterID; ga->lpAdapterID = lpAdapterID;
ga->DefPerfLev = NULL; ga->DefPerfLev = NULL;
ga->lpThermalControllerInfo.iSize=sizeof(ADLThermalControllerInfo);
if (ADL_Overdrive5_ThermalDevices_Enum(iAdapterIndex, 0, &ga->lpThermalControllerInfo) != ADL_OK) if (ADL_Overdrive5_ThermalDevices_Enum(iAdapterIndex, 0, &ga->lpThermalControllerInfo) != ADL_OK)
applog(LOG_INFO, "Failed to ADL_Overdrive5_ThermalDevices_Enum"); applog(LOG_INFO, "Failed to ADL_Overdrive5_ThermalDevices_Enum");

Loading…
Cancel
Save