VirtualBox

Changeset 27316 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Mar 12, 2010 9:49:51 AM (15 years ago)
Author:
vboxsync
Message:

Devices/ACPI: fixes for r58659

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DrvACPI.cpp

    r27266 r27316  
    158158    PDRVACPI pThis = RT_FROM_MEMBER(pInterface, DRVACPI, IACPIConnector);
    159159    RTCritSectEnter(&pThis->CritSect);
    160     *pPowerSource = pThis->enmPowerSource, pPowerSource;
     160    *pPowerSource = pThis->enmPowerSource;
    161161    RTCritSectLeave(&pThis->CritSect);
    162162
     
    274274    *pfPresent = pThis->fBatteryPresent;
    275275    *penmRemainingCapacity = pThis->enmBatteryRemainingCapacity;
    276     *penmBatteryState = pThis->enmBatteryState, penmBatteryState;
     276    *penmBatteryState = pThis->enmBatteryState;
    277277    *pu32PresentRate = pThis->u32BatteryPresentRate;
    278278    RTCritSectLeave(&pThis->CritSect);
     
    644644                        if (strstr(szLine, "last full capacity:") != NULL)
    645645                        {
    646                             rc = RTStrToInt32Full(szLine + 19, 0, &maxCapacity);
     646                            char *psz;
     647                            rc = RTStrToInt32Ex(RTStrStripL(&szLine[19]), &psz, 0, &maxCapacity);
    647648                            if (RT_FAILURE(rc))
    648649                                maxCapacity = INT32_MIN;
     
    682683                        if (strstr(szLine, "remaining capacity:") != NULL)
    683684                        {
    684                             rc = RTStrToInt32Full(szLine + 19, 0, &currentCapacity);
     685                            char *psz;
     686                            rc = RTStrToInt32Ex(RTStrStripL(&szLine[19]), &psz, 0, &currentCapacity);
    685687                            if (RT_FAILURE(rc))
    686688                                currentCapacity = INT32_MIN;
     
    715717                        if (strstr(szLine, "present rate:") != NULL)
    716718                        {
    717                             rc = RTStrToInt32Full(szLine + 13, 0, &presentRate);
     719                            char *psz;
     720                            rc = RTStrToInt32Ex(RTStrStripL(&szLine[13]), &psz, 0, &presentRate);
    718721                            if (RT_FAILURE(rc))
    719722                                presentRate = 0;
     
    922925    PDM_DRVREG_VERSION
    923926};
    924 
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette