Ignore:
Timestamp:
Apr 14, 2011, 1:11:31 PM (14 years ago)
Author:
dmik
Message:

kernel32: Prevent accessing dprintf's FILE members in release builds: it is seen to access freed data when handling process termination exceptions (dprintf functionality is completely useless in release builds).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/exceptions.cpp

    r21610 r21615  
    11911191                                           PVOID                        p)
    11921192{
     1193#ifdef DEBUG
    11931194    //SvL: Check if exception inside debug fprintf -> if so, clear lock so
    11941195    //     next dprintf won't wait forever
    11951196    int prevlock = LogException(ENTER_EXCEPTION);
     1197#endif
    11961198
    11971199// @@VP20040507: no need to sprintf every exception
     
    16561658    }
    16571659continuesearch:
     1660#ifdef DEBUG
    16581661    LogException(LEAVE_EXCEPTION, prevlock);
     1662#endif
    16591663    return XCPT_CONTINUE_SEARCH;
    16601664
    16611665continueexecution:
     1666#ifdef DEBUG
    16621667    LogException(LEAVE_EXCEPTION, prevlock);
     1668#endif
    16631669    return XCPT_CONTINUE_EXECUTION;
    16641670}
Note: See TracChangeset for help on using the changeset viewer.