VirtualBox

Changeset 107632 in vbox


Ignore:
Timestamp:
Jan 10, 2025 10:45:03 AM (8 days ago)
Author:
vboxsync
Message:

SUPHardNt: Better use of SUPHNTIMP_ERROR's a_szWhere param when a_fReportErrors=false. bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPR3HardenedMainImports-win.cpp

    r106893 r107632  
    6565# define SUPHNTIMP_ERROR(a_fReportErrors, a_id, a_szWhere, a_enmOp, a_rc, ...) \
    6666    do { \
    67         if (a_fReportErrors) supR3HardenedFatalMsg(a_szWhere, a_enmOp, a_rc, __VA_ARGS__); \
    68         else { static const char s_szWhere[] = a_szWhere; *(char *)(uintptr_t)(a_id) += 1; __debugbreak(); } \
     67        const char * const pszWhereError = (a_szWhere); \
     68        if (a_fReportErrors) supR3HardenedFatalMsg(pszWhereError, a_enmOp, a_rc, __VA_ARGS__); \
     69        else { *(uintptr_t *)(uintptr_t)(a_id) += (uintptr_t)pszWhereError; __debugbreak(); } \
    6970    } while (0)
    7071#else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette