From e3e9fce8d88fb552ca85e5000c6e36ef3aa2e8fe Mon Sep 17 00:00:00 2001 From: Doczom Date: Sat, 10 Sep 2022 23:18:50 +0000 Subject: [PATCH] docky.asm: added notify from error load @RESHARE git-svn-id: svn://kolibrios.org@9876 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/docky/trunk/docky.asm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/programs/system/docky/trunk/docky.asm b/programs/system/docky/trunk/docky.asm index f2f737b54c..53b4cfd289 100644 --- a/programs/system/docky/trunk/docky.asm +++ b/programs/system/docky/trunk/docky.asm @@ -247,6 +247,24 @@ exit: mcall SF_SYSTEM, SSF_TERMINATE_THREAD, [nwin.sid] mcall SF_TERMINATE_PROCESS ;------------------------------------------------------------------------------- +error_exit: + push .notify + dec esp + push 0 + push 0 + push .error_message + push 0 + push SSF_START_APP + + mcall SF_FILE, esp + add esp, 6*4 + 1 + mcall SF_SYSTEM, SSF_TERMINATE_THREAD, [nwin.sid] + mcall SF_TERMINATE_PROCESS +.error_message: + db '"@DOCKY\nError load @RESHARE" -tdE',0 +.notify: + db '/sys/@notify',0 +;------------------------------------------------------------------------------- align 4 main_loop: mcall SF_WAIT_EVENT @@ -617,6 +635,9 @@ LOAD_ICONS: @@: ; 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