Ignore:
Timestamp:
Oct 8, 2006, 11:06:47 PM (19 years ago)
Author:
dmik
Message:

Global: Fixed qSystemWarning(): Do not try to get the error text for the DOS error code (OSO001.MSG is NOT for that purpose).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tools/qglobal.cpp

    r8 r133  
    698698#elif defined(Q_OS_OS2)
    699699    if ( code != -1 ) {
    700         CHAR buf [256] = {0};
    701         ULONG len = 0;
    702         APIRET rc = DosGetMessage( NULL, 0, buf, sizeof(buf) - 1, code, "OSO001.MSG", &len );
    703         if ( !rc ) {
    704             buf[len] = '\0';
    705             qWarning( "%s\n\tError %s", msg, buf );
    706         } else {
    707             if ( rc == ERROR_MR_MSG_TOO_LONG )
    708                 qWarning(
    709                     "%s\n\tError code SYS%04d, "
    710                     "type help %d in the command prompt to get more information",
    711                     msg, code, code );
    712             else
    713                 qWarning( "%s\n\tError code %d (system error)", msg, code );
    714         }
     700        qWarning( "%s\n\tError code %d (system error)", msg, code );
    715701    } else {
    716702        code = (int) WinGetLastError( 0 );
Note: See TracChangeset for help on using the changeset viewer.