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

GetSystemPowerStatus fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.