From b5fd932befbe8a448f8d20f5003d78dbbba6be11 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Thu, 2 Mar 2017 08:24:20 +0000 Subject: [PATCH] [UXTHEME] -Fix parsing negative integers. Improves the situation of the start button with Lautus. svn path=/trunk/; revision=74022 --- reactos/dll/win32/uxtheme/msstyles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/uxtheme/msstyles.c b/reactos/dll/win32/uxtheme/msstyles.c index f2969967553..337e0df9b18 100644 --- a/reactos/dll/win32/uxtheme/msstyles.c +++ b/reactos/dll/win32/uxtheme/msstyles.c @@ -942,7 +942,7 @@ static BOOL MSSTYLES_GetNextInteger(LPCWSTR lpStringStart, LPCWSTR lpStringEnd, int total = 0; BOOL gotNeg = FALSE; - while(cur < lpStringEnd && (*cur < '0' || *cur > '9' || *cur == '-')) cur++; + while(cur < lpStringEnd && ((*cur < '0' || *cur > '9') && *cur != '-')) cur++; if(cur >= lpStringEnd) { return FALSE; }