Changeset 5393 for trunk/src/kernel32


Ignore:
Timestamp:
Mar 28, 2001, 6:21:41 PM (24 years ago)
Author:
sandervl
Message:

GetSystemPowerStatus fix

Location:
trunk/src/kernel32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/KERNEL32.CPP

    r5354 r5393  
    1 /* $Id: KERNEL32.CPP,v 1.60 2001-03-22 18:16:40 sandervl Exp $ */
     1/* $Id: KERNEL32.CPP,v 1.61 2001-03-28 16:21:40 sandervl Exp $ */
    22
    33/*
     
    456456        return FALSE;
    457457  }
    458   lpSystemPowerStatus->ACLineStatus       = 1; //online
    459   lpSystemPowerStatus->BatteryFlag        = 128; //no system battery
    460   lpSystemPowerStatus->BatteryLifePercent = 255; //unknown
    461   lpSystemPowerStatus->reserved           = 0;
    462   lpSystemPowerStatus->BatteryLifeTime    = -1; //unknown
    463   lpSystemPowerStatus->BatteryFullLifeTime= -1; //unknown
     458  lpSystemPowerStatus->ACLineStatus       = AC_LINE_ONLINE;
     459  lpSystemPowerStatus->BatteryFlag        = BATTERY_FLAG_HIGH;
     460  lpSystemPowerStatus->BatteryLifePercent = BATTERY_PERCENTAGE_UNKNOWN;
     461  lpSystemPowerStatus->Reserved1          = 0;
     462  lpSystemPowerStatus->BatteryLifeTime    = BATTERY_LIFE_UNKNOWN;
     463  lpSystemPowerStatus->BatteryFullLifeTime= BATTERY_LIFE_UNKNOWN;
    464464
    465465  return TRUE;
  • trunk/src/kernel32/oslibdos.cpp

    r5197 r5393  
    1 /* $Id: oslibdos.cpp,v 1.59 2001-02-19 22:07:21 sandervl Exp $ */
     1/* $Id: oslibdos.cpp,v 1.60 2001-03-28 16:21:41 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    141141        return ERROR_WRITE_PROTECT_W;
    142142
     143    case ERROR_NOT_READY: //21
     144        return ERROR_NOT_READY_W;
     145
    143146    case ERROR_NOT_DOS_DISK: //26
    144147        return ERROR_NOT_DOS_DISK_W;
  • trunk/src/kernel32/winimgres.cpp

    r4471 r5393  
    1 /* $Id: winimgres.cpp,v 1.49 2000-10-09 18:35:27 sandervl Exp $ */
     1/* $Id: winimgres.cpp,v 1.50 2001-03-28 16:21:41 sandervl Exp $ */
    22
    33/*
     
    142142    pResDirRet = getResSubDirA(pResRootDir, lpszType);
    143143    if(!pResDirRet) {
     144        dprintf2(("FindResourceA %s: resource %x (type %x, lang %x) TYPE NOT FOUND", szModule, lpszName, lpszType, lang));
    144145        SetLastError(ERROR_RESOURCE_TYPE_NOT_FOUND);
    145146        return NULL;
     
    147148    pResDirRet = getResSubDirA(pResDirRet, lpszName);
    148149    if(!pResDirRet) {
     150        dprintf2(("FindResourceA %s: resource %x (type %x, lang %x) NAME NOT FOUND", szModule, lpszName, lpszType, lang));
    149151        SetLastError(ERROR_RESOURCE_NAME_NOT_FOUND);
    150152        return NULL;
     
    162164
    163165    if((ULONG)lpszName != ID_GETFIRST && HIWORD(lpszName)) {
    164             dprintf(("FindResource %s: resource %s (type %x, lang %x)", szModule, lpszName, lpszType, lang));
    165     }
    166     else    dprintf(("FindResource %s: resource %x (type %x, lang %x)", szModule, lpszName, lpszType, lang));
     166            dprintf(("FindResourceA %s: resource %s (type %x, lang %x)", szModule, lpszName, lpszType, lang));
     167    }
     168    else    dprintf(("FindResourceA %s: resource %x (type %x, lang %x)", szModule, lpszName, lpszType, lang));
    167169
    168170    SetLastError(ERROR_SUCCESS);
     
    196198    pResDirRet = getResSubDirW(pResRootDir, lpszType);
    197199    if(!pResDirRet) {
     200        dprintf2(("FindResourceW %s: resource %x (type %x, lang %x) TYPE NOT FOUND", szModule, lpszName, lpszType, lang));
    198201        SetLastError(ERROR_RESOURCE_TYPE_NOT_FOUND);
    199202        return NULL;
     
    201204    pResDirRet = getResSubDirW(pResDirRet, lpszName);
    202205    if(!pResDirRet) {
     206        dprintf2(("FindResourceW %s: resource %x (type %x, lang %x) NAME NOT FOUND", szModule, lpszName, lpszType, lang));
    203207        SetLastError(ERROR_RESOURCE_NAME_NOT_FOUND);
    204208        return NULL;
     
    214218    }
    215219    else hRes = getResourceLangEx(pResDirRet, lang);
     220
     221    if((ULONG)lpszName != ID_GETFIRST && HIWORD(lpszName)) {
     222            dprintf(("FindResourceW %s: resource %ls (type %x, lang %x)", szModule, lpszName, lpszType, lang));
     223    }
     224    else    dprintf(("FindResourceW %s: resource %x (type %x, lang %x)", szModule, lpszName, lpszType, lang));
    216225
    217226    SetLastError(ERROR_SUCCESS);
Note: See TracChangeset for help on using the changeset viewer.