Changeset 1447 for trunk/dll/errutil.c


Ignore:
Timestamp:
Jul 23, 2009, 11:16:05 PM (16 years ago)
Author:
Gregg Young
Message:

Add an reposition semaphore releases for Tree scan code to avoid hangs; Bypass DosGetMessage for HIMEM builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/errutil.c

    r1402 r1447  
    3333  07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook.
    3434  08 Mar 09 GKY Remove Dos_Error2 (unused) and Runtime_Error2 (no advantage over using Runtime_Error)
     35  23 Jul 09 GKY Bypass DosGetMessage for HIMEM builds (it traps)
    3536
    3637***********************************************************************/
     
    120121  ULONG action;                         // Error action
    121122  ULONG Locus;                          // Error location
     123#ifndef HIMEM
    122124  ULONG ulMsgLen;
    123125  CHAR *pszMsgStart;
    124126  CHAR *psz;
     127#endif
    125128  va_list va;
    126129
     
    153156          GetPString(IDS_ERRCLASS1TEXT + (Class - 1)),
    154157          GetPString(IDS_ERRACTION1TEXT + (action - 1)),
    155           GetPString(IDS_ERRLOCUS1TEXT + (Locus - 1)));
     158          GetPString(IDS_ERRLOCUS1TEXT + (Locus - 1)));
     159#ifndef HIMEM
    156160  pszMsgStart = szMsg + strlen(szMsg) + 1;
    157161  // Get message leaving space for NL separator
    158   if (!DosGetMessage
    159       (NULL, 0L, (PCHAR) pszMsgStart + 1, 1024, ulRC, "OSO001.MSG", &ulMsgLen)
     162  if (!DosGetMessage(NULL, 0L, (PCHAR) pszMsgStart + 1, 1024, ulRC, "OSO001.MSG", &ulMsgLen)
    160163      || !DosGetMessage(NULL, 0L, (PCHAR) pszMsgStart + 1, 1024, ulRC,
    161164                        "OSO001H.MSG", &ulMsgLen)) {
     
    185188    }
    186189  }
     190#endif
    187191
    188192  return showMsg(mb_type | MB_ICONEXCLAMATION, hwndOwner, GetPString(IDS_DOSERR2TEXT),
Note: See TracChangeset for help on using the changeset viewer.