ntdll: Constify some variables

Andrew Talbot Andrew.Talbot at talbotville.com
Wed Jun 27 14:59:51 CDT 2007


Changelog:
    ntdll: Constify some variables.

diff -urN a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
--- a/dlls/ntdll/thread.c	2007-05-23 21:55:15.000000000 +0100
+++ b/dlls/ntdll/thread.c	2007-06-27 19:43:22.000000000 +0100
@@ -131,7 +131,7 @@
  *
  * 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)
     {
diff -urN a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
--- a/dlls/ntdll/virtual.c	2007-05-23 21:55:15.000000000 +0100
+++ b/dlls/ntdll/virtual.c	2007-06-27 19:43:35.000000000 +0100
@@ -366,9 +366,9 @@
  *
  * 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));
 }
 
 



More information about the wine-patches mailing list