osd_is_bad_read_ptr is no more.

This commit is contained in:
Aaron Giles 2009-08-29 22:53:40 +00:00
parent 4d657d4bde
commit f0ba9131eb
3 changed files with 0 additions and 43 deletions

View File

@ -757,28 +757,6 @@ void *osd_alloc_executable(size_t size);
void osd_free_executable(void *ptr, size_t size); void osd_free_executable(void *ptr, size_t size);
/*-----------------------------------------------------------------------------
osd_is_bad_read_ptr: attempt to determine if the given pointer will
generate an access violation if accessed for read
Parameters:
ptr - the pointer to examine
size - the number of bytes to reference
Return value:
TRUE if an access to the referenced memory will generate an access
violation on a read; FALSE otherwise.
Notes:
This function will eventually be deprecated.
-----------------------------------------------------------------------------*/
int osd_is_bad_read_ptr(const void *ptr, size_t size);
/*----------------------------------------------------------------------------- /*-----------------------------------------------------------------------------
osd_break_into_debugger: break into the hosting system's debugger if one osd_break_into_debugger: break into the hosting system's debugger if one
is attached is attached

View File

@ -32,17 +32,6 @@ void osd_free_executable(void *ptr, size_t size)
} }
//============================================================
// osd_is_bad_read_ptr
//============================================================
int osd_is_bad_read_ptr(const void *ptr, size_t size)
{
// there is no standard way to do this, so just say no
return FALSE;
}
//============================================================ //============================================================
// osd_break_into_debugger // osd_break_into_debugger
//============================================================ //============================================================

View File

@ -40,16 +40,6 @@ void osd_free_executable(void *ptr, size_t size)
} }
//============================================================
// osd_is_bad_read_ptr
//============================================================
int osd_is_bad_read_ptr(const void *ptr, size_t size)
{
return IsBadReadPtr(ptr, size);
}
//============================================================ //============================================================
// osd_break_into_debugger // osd_break_into_debugger
//============================================================ //============================================================