Changeset 446 for trunk/dll/common.c


Ignore:
Timestamp:
Aug 24, 2006, 6:51:41 AM (19 years ago)
Author:
root
Message:

Use Dos_Error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/common.c

    r377 r446  
    1111  13 Aug 05 SHL Renames
    1212  22 Jul 06 SHL Check more run time errors
     13  15 Aug 06 SHL Use Dos_Error
    1314
    1415***********************************************************************/
     
    317318      break;
    318319
    319 /*
     320#if 0 // fixme to be gone?
     321
    320322    case IDM_CLOSETRAY:
    321323      if(driveflags[*dv - 'A'] & DRIVE_CDROM) {
     
    338340                     OPEN_SHARE_DENYNONE,
    339341                     NULL);
    340         if(!rc) {
     342        if (rc)
     343          Dos_Error(MB_CANCEL,rc,hwnd,pszSrcFile,__LINE__,"DosOpen");
     344        else {
    341345          dlen = 0;
    342346          plen = sizeof(parm);
     
    351355                           &dlen);
    352356          DosClose(hfile);
    353           if(rc)
    354             saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"rc2 = %lu",rc);
     357          if (rc)
     358            Dos_Error(MB_CANCEL,rc,hwnd,pszSrcFile,__LINE__,"DosDevIOCtl");
    355359        }
    356         else
    357           saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"rc = %lu",rc);
    358       }
    359       break;
    360 */
     360      }
     361      break;
     362#endif // fixme to be gone?
     363
    361364
    362365    case IDM_LOCK:
Note: See TracChangeset for help on using the changeset viewer.