Ignore:
Timestamp:
Oct 9, 2005, 3:11:51 PM (20 years ago)
Author:
pr
Message:

Update functions using exception handlers to force non-register variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1-0/src/helpers/except.c

    r264 r297  
    128128 +          int your_func(int)
    129129 +          {
    130  +              BOOL    fSemOwned = FALSE;
     130 +              volatile BOOL    fSemOwned = FALSE;
    131131 +
    132132 +              TRY_QUIET(excpt1)           // or TRY_LOUD
     
    188188
    189189/*
    190  *      This file Copyright (C) 1992-99 Ulrich M”ller,
    191  *                                      Monte Copeland,
    192  *                                      Roman Stangl,
    193  *                                      Kim Rasmussen,
    194  *                                      Marc Fiammante,
    195  *                                      John Currier,
    196  *                                      Anthony Cruise.
     190 *      This file Copyright (C) 1992-2005 Ulrich M”ller,
     191 *                                        Monte Copeland,
     192 *                                        Roman Stangl,
     193 *                                        Kim Rasmussen,
     194 *                                        Marc Fiammante,
     195 *                                        John Currier,
     196 *                                        Anthony Cruise.
    197197 *      This file is part of the "XWorkplace helpers" source package.
    198198 *      This is free software; you can redistribute it and/or modify
     
    788788 *      writes no trap logs).
    789789 *
     790 *      Registering hooks affects all threads that use
     791 *      the exception handlers.
     792 *
    790793 *      The hooks are as follows:
    791794 *
     
    914917     */
    915918
    916     if (pReportRec->fHandlerFlags & EH_EXIT_UNWIND)
    917        return XCPT_CONTINUE_SEARCH;
    918     if (pReportRec->fHandlerFlags & EH_UNWINDING)
    919        return XCPT_CONTINUE_SEARCH;
    920     if (pReportRec->fHandlerFlags & EH_NESTED_CALL)
     919    // XWP V1.0.4 (2005-10-09) [pr]: Optimize
     920    if (pReportRec->fHandlerFlags & (EH_EXIT_UNWIND | EH_UNWINDING | EH_NESTED_CALL))
    921921       return XCPT_CONTINUE_SEARCH;
    922922
     
    10101010                              PVOID pv)
    10111011{
    1012     if (pReportRec->fHandlerFlags & EH_EXIT_UNWIND)
    1013        return XCPT_CONTINUE_SEARCH;
    1014     if (pReportRec->fHandlerFlags & EH_UNWINDING)
    1015        return XCPT_CONTINUE_SEARCH;
    1016     if (pReportRec->fHandlerFlags & EH_NESTED_CALL)
     1012    // XWP V1.0.4 (2005-10-09) [pr]: Optimize
     1013    if (pReportRec->fHandlerFlags & (EH_EXIT_UNWIND | EH_UNWINDING | EH_NESTED_CALL))
    10171014       return XCPT_CONTINUE_SEARCH;
    10181015
Note: See TracChangeset for help on using the changeset viewer.