From c82b3ee66d53ad7b6667b5df2d6f531e6386bd26 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Tue, 11 Mar 2014 22:46:49 +0000 Subject: [PATCH] [PSDK] intsafe.h: fix a comment and 2 benign "typos" svn path=/trunk/; revision=62479 --- reactos/include/psdk/intsafe.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/include/psdk/intsafe.h b/reactos/include/psdk/intsafe.h index ce64be8ec8d..9b9557cfa13 100644 --- a/reactos/include/psdk/intsafe.h +++ b/reactos/include/psdk/intsafe.h @@ -657,7 +657,7 @@ INTSAFE_NAME(ULongLongMult)( M2 = M2Low + M2Hi * 0x100000000 Then the multiplication looks like this: - M1 * M2 = (M1Low + M1Hi * 0x100000000) + (M2Low + M2Hi * 0x100000000) + M1 * M2 = (M1Low + M1Hi * 0x100000000) * (M2Low + M2Hi * 0x100000000) = M1Low * M2Low + M1Low * M2Hi * 0x100000000 + M2Low * M1Hi * 0x100000000 @@ -686,13 +686,13 @@ INTSAFE_NAME(ULongLongMult)( } else { - *pOutput = LONGLONG_ERROR; + *pOutput = ULONGLONG_ERROR; return INTSAFE_E_ARITHMETIC_OVERFLOW; } if (Temp > ULONG_MAX) { - *pOutput = LONGLONG_ERROR; + *pOutput = ULONGLONG_ERROR; return INTSAFE_E_ARITHMETIC_OVERFLOW; }