VirtualBox

Ignore:
Timestamp:
Aug 25, 2022 2:46:22 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153324
Message:

IPRT: Resolve IsDebuggerPresent and GetSystemTimeAsFileTime dynamically as they are not present on windows version before NT4. bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/assert.cpp

    r96448 r96476  
    6060# ifdef RT_OS_WINDOWS
    6161#  include <iprt/win/windows.h>
     62#  include "../../r3/win/internal-r3-win.h"
    6263# endif
    6364#endif
     
    159160        size_t cchStack = 0;
    160161# if defined(IN_RING3) && defined(RT_OS_WINDOWS) /** @todo make this stack on/off thing more modular. */
    161         bool   fStack = !IsDebuggerPresent() && !RTEnvExist("IPRT_ASSERT_NO_STACK");
     162        bool   fStack = (!g_pfnIsDebuggerPresent || !g_pfnIsDebuggerPresent()) && !RTEnvExist("IPRT_ASSERT_NO_STACK");
    162163# elif defined(IN_RING3)
    163164        bool   fStack = !RTEnvExist("IPRT_ASSERT_NO_STACK");
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