From bb04fe3a777098d8f937ec723ca3c61e6b978e62 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Tue, 18 Jun 2019 19:24:22 +0000 Subject: [PATCH] boxlib/progressbar: Fix imul overflow, use 32*32 mul. git-svn-id: svn://kolibrios.org@7671 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/box_lib/trunk/progressbar.mac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/programs/develop/libraries/box_lib/trunk/progressbar.mac b/programs/develop/libraries/box_lib/trunk/progressbar.mac index 1bdad5511e..ca49be7b49 100644 --- a/programs/develop/libraries/box_lib/trunk/progressbar.mac +++ b/programs/develop/libraries/box_lib/trunk/progressbar.mac @@ -79,10 +79,9 @@ get_progress_width: dec esi sub eax, ecx dec esi - imul eax, esi neg ecx add ecx, edx - xor edx, edx + mul esi div ecx ret