From 669c8fa38a75c7298d2b21385f0bc885bb0444ba Mon Sep 17 00:00:00 2001 From: Doczom Date: Sun, 18 Sep 2022 16:49:54 +0000 Subject: [PATCH] docky.asm: fix timeout for connect to @reshare git-svn-id: svn://kolibrios.org@9877 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/docky/trunk/docky.asm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/programs/system/docky/trunk/docky.asm b/programs/system/docky/trunk/docky.asm index 53b4cfd289..3fa0756a2a 100644 --- a/programs/system/docky/trunk/docky.asm +++ b/programs/system/docky/trunk/docky.asm @@ -632,17 +632,16 @@ endp ;------------------------------------------------------------------------------- LOAD_ICONS: mov esi, 0 ; esi is a counter of mem_open attempts + mov edi, esi @@: ; try to open shr memory, if failed then make 5 attempts more mcall SF_SYS_MISC, SSF_MEM_OPEN,icons_resname ; 0 = SHM_READ - cmp edx, 5 - jz error_exit cmp eax,0 jne @f - inc esi - cmp esi,10 - je exit + inc edi + cmp edi,10 + je error_exit mcall SF_SLEEP, 70 jmp @b @@: