OSDN Git Service

* miscfuncs.cc (__check_invalid_read_ptr_errno): Return error, if any.
authorcorinna <corinna>
Mon, 22 Oct 2001 11:31:38 +0000 (11:31 +0000)
committercorinna <corinna>
Mon, 22 Oct 2001 11:31:38 +0000 (11:31 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/miscfuncs.cc

index 4d2c429..68ce1af 100644 (file)
@@ -1,3 +1,7 @@
+2001-10-22  Corinna Vinschen  <corinna@vinschen.de>
+
+       * miscfuncs.cc (__check_invalid_read_ptr_errno): Return error, if any.
+
 2001-10-21  Christopher Faylor  <cgf@redhat.com>
 
        * resource.cc (fill_rusage): Perform paranoid zero structure passed to
index 63b05d9..ecc5bd2 100644 (file)
@@ -158,7 +158,7 @@ int __stdcall
 __check_invalid_read_ptr_errno (const void *s, unsigned sz)
 {
   if (!s || IsBadReadPtr ((void *) s, sz))
-    set_errno (EFAULT);
+    return set_errno (EFAULT);
 
   return 0;
 }