Changeset 4195 in vbox
- Timestamp:
- Aug 16, 2007 10:54:20 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 23687
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevACPI.cpp
r4071 r4195 896 896 int rc; 897 897 898 if (!s->pDrv) 899 return; 898 900 rc = s->pDrv->pfnQueryBatteryStatus (s->pDrv, &fPresent, &hostRemainingCapacity, 899 901 &hostBatteryState, &hostPresentRate); … … 943 945 int rc; 944 946 947 if (!s->pDrv) 948 return 0; 945 949 rc = s->pDrv->pfnQueryBatteryStatus (s->pDrv, &fPresent, &hostRemainingCapacity, 946 950 &hostBatteryState, &hostPresentRate); … … 961 965 962 966 /* query the current power source from the host driver */ 967 if (!s->pDrv) 968 return AC_ONLINE; 963 969 int rc = s->pDrv->pfnQueryPowerSource (s->pDrv, &ps); 964 970 AssertRC (rc);
Note:
See TracChangeset
for help on using the changeset viewer.