Changeset 27316 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Mar 12, 2010 9:49:51 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DrvACPI.cpp
r27266 r27316 158 158 PDRVACPI pThis = RT_FROM_MEMBER(pInterface, DRVACPI, IACPIConnector); 159 159 RTCritSectEnter(&pThis->CritSect); 160 *pPowerSource = pThis->enmPowerSource , pPowerSource;160 *pPowerSource = pThis->enmPowerSource; 161 161 RTCritSectLeave(&pThis->CritSect); 162 162 … … 274 274 *pfPresent = pThis->fBatteryPresent; 275 275 *penmRemainingCapacity = pThis->enmBatteryRemainingCapacity; 276 *penmBatteryState = pThis->enmBatteryState , penmBatteryState;276 *penmBatteryState = pThis->enmBatteryState; 277 277 *pu32PresentRate = pThis->u32BatteryPresentRate; 278 278 RTCritSectLeave(&pThis->CritSect); … … 644 644 if (strstr(szLine, "last full capacity:") != NULL) 645 645 { 646 rc = RTStrToInt32Full(szLine + 19, 0, &maxCapacity); 646 char *psz; 647 rc = RTStrToInt32Ex(RTStrStripL(&szLine[19]), &psz, 0, &maxCapacity); 647 648 if (RT_FAILURE(rc)) 648 649 maxCapacity = INT32_MIN; … … 682 683 if (strstr(szLine, "remaining capacity:") != NULL) 683 684 { 684 rc = RTStrToInt32Full(szLine + 19, 0, ¤tCapacity); 685 char *psz; 686 rc = RTStrToInt32Ex(RTStrStripL(&szLine[19]), &psz, 0, ¤tCapacity); 685 687 if (RT_FAILURE(rc)) 686 688 currentCapacity = INT32_MIN; … … 715 717 if (strstr(szLine, "present rate:") != NULL) 716 718 { 717 rc = RTStrToInt32Full(szLine + 13, 0, &presentRate); 719 char *psz; 720 rc = RTStrToInt32Ex(RTStrStripL(&szLine[13]), &psz, 0, &presentRate); 718 721 if (RT_FAILURE(rc)) 719 722 presentRate = 0; … … 922 925 PDM_DRVREG_VERSION 923 926 }; 924
Note:
See TracChangeset
for help on using the changeset viewer.