Commit e3708a60 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

ntdll: Constify some variables.

parent ff62d6cf
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment