/*
* Copyright 1995, 2007 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
/*
* ntinvargs.cc -- handle C runtime invalid parameters.
*/
# define NEED_DBGBREAK
# include <stdhdrs.h>
# include <ntinvargs.h>
#if defined(OS_NT) && !defined(OS_NTIA64) && !defined(OS_MINGW)
void
_on_invalid_parameter (
const wchar_t * expression,
const wchar_t * function,
const wchar_t * file,
unsigned int line,
uintptr_t pReserved
)
{
if( IsDebuggerPresent() )
{
char msg[128];
// Notice p4diag this is a Posix Invalid Parameter event.
sprintf (msg, "event: Posix Invalid Parameter");
OutputDebugString(msg);
# ifdef HAVE_DBGBREAK
// Under p4diag, create a strack trace and mini dump.
DebugBreak();
# endif // HAVE_DBGBREAK
}
}
NtInvArgs::NtInvArgs()
{
_set_invalid_parameter_handler(
(_invalid_parameter_handler) _on_invalid_parameter);
}
#else
NtInvArgs::NtInvArgs()
{
}
#endif
# |
Change |
User |
Description |
Committed |
|
#1
|
15902 |
Matt Attaway |
A second renaming that I will not obliterate as a badge of shame |
|
|
//guest/perforce_software/p4/2014_1/sys/ntinvargs.cc |
#1
|
15901 |
Matt Attaway |
Clean up code to fit modern Workshop naming standards |
|
|
//guest/perforce_software/p4/2014.1/sys/ntinvargs.cc |
#1
|
12188 |
Matt Attaway |
Move 'main' p4 into a release specific directory in prep for new releases |
|
|
//guest/perforce_software/p4/sys/ntinvargs.cc |
#1
|
9129 |
Matt Attaway |
Initial commit of the 2014.1 p4/p4api source code |
|
|