From 2a21adaff0af9adfbcf4abe7cbdb64ea71592be9 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Tue, 4 Jan 2011 17:29:10 +0000 Subject: [PATCH] [CRT] - Set errno when a overflow occurs in strtoull - Fixes 2 wine tests failures in msvcrt:string svn path=/trunk/; revision=50286 --- reactos/lib/sdk/crt/string/strtoull.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/lib/sdk/crt/string/strtoull.c b/reactos/lib/sdk/crt/string/strtoull.c index b3f4b476114..edd4fd14c67 100644 --- a/reactos/lib/sdk/crt/string/strtoull.c +++ b/reactos/lib/sdk/crt/string/strtoull.c @@ -54,6 +54,7 @@ strtoull(const char *nptr, char **endptr, int base) if (any < 0) { acc = ULLONG_MAX; + __set_errno(ERANGE); } else if (neg) acc = -acc;