Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r--winsup/cygwin/times.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc
index 708f48df6..aca27c6a5 100644
--- a/winsup/cygwin/times.cc
+++ b/winsup/cygwin/times.cc
@@ -53,7 +53,8 @@ times (struct tms *buf)
{
FILETIME creation_time, exit_time, kernel_time, user_time;
- if (check_null_invalid_struct_errno (buf))
+ myfault efault;
+ if (efault.faulted (EFAULT))
return ((clock_t) -1);
DWORD ticks = GetTickCount ();