Changeset 170 for trunk/classes/c


Ignore:
Timestamp:
Mar 27, 2024, 10:39:29 PM (17 months ago)
Author:
gyoung
Message:

Add some error logging

Location:
trunk/classes/c/c_image
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/classes/c/c_image/bitmap.c

    r2 r170  
    142142      {
    143143        LONG lBytesRead;
    144         mmioGetFormatName(&mmFormatInfo, pName, &lBytesRead, 0,0);
     144        ulReturnCode = mmioGetFormatName(&mmFormatInfo, pName, &lBytesRead, 0,0);
     145        if(ulReturnCode)
     146          {
     147          SysWriteToTrapLog("bitmap.c: %s %u\n\n", pName, ulReturnCode);
     148          }
    145149        strncpy(procName, pName, ulLength-1);
    146150        free(pName);
  • trunk/classes/c/c_image/cwbmp.c

    r57 r170  
    561561        chrPtr=strrchr(chrPtr, 0);
    562562
    563         mmioGetFormatName(&g_pmmFormatInfoArray[ulMenuId-ID_ITEM_FIRSTCONVERT], chrPtr,(LONG*) &ulSize, 0L, 0L);
     563        ulRc = mmioGetFormatName(&g_pmmFormatInfoArray[ulMenuId-ID_ITEM_FIRSTCONVERT], chrPtr,(LONG*) &ulSize, 0L, 0L);
     564        if(ulRc)
     565          {
     566          SysWriteToTrapLog("cwbmp.c: %s %u\n\n", chrPtr, ulRc);
     567          }
    564568        *( chrPtr + ulSize ) = (CHAR)NULL;
    565569        strcat(chrPtr,"\"");
Note: See TracChangeset for help on using the changeset viewer.