ntdll: Constify some variables.
This commit is contained in:
parent
ff62d6cf42
commit
e3708a60b4
|
@ -131,7 +131,7 @@ static inline NTSTATUS init_teb( TEB *teb )
|
|||
*
|
||||
* Make sure the unicode string doesn't point beyond the end pointer
|
||||
*/
|
||||
static inline void fix_unicode_string( UNICODE_STRING *str, char *end_ptr )
|
||||
static inline void fix_unicode_string( UNICODE_STRING *str, const char *end_ptr )
|
||||
{
|
||||
if ((char *)str->Buffer >= end_ptr)
|
||||
{
|
||||
|
|
|
@ -366,9 +366,9 @@ static void add_reserved_area( void *addr, size_t size )
|
|||
*
|
||||
* Check if an address range goes beyond a given limit.
|
||||
*/
|
||||
static inline int is_beyond_limit( void *addr, size_t size, void *limit )
|
||||
static inline int is_beyond_limit( const void *addr, size_t size, const void *limit )
|
||||
{
|
||||
return (limit && (addr >= limit || (char *)addr + size > (char *)limit));
|
||||
return (limit && (addr >= limit || (const char *)addr + size > (const char *)limit));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue