Fixed function

git-svn-id: svn://kolibrios.org@7326 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
pavelyakov 2018-08-27 10:28:27 +00:00
parent 598bb537e9
commit 840cb9a4ea

View File

@ -5,8 +5,9 @@
#initallvar 0 #initallvar 0
#jumptomain FALSE #jumptomain FALSE
#startaddress 0x0000 #startaddress 0
#code32 TRUE
char os_name[8] = {'M','E','N','U','E','T','0','1'}; char os_name[8] = {'M','E','N','U','E','T','0','1'};
dword os_version = 0x00000001; dword os_version = 0x00000001;
@ -26,17 +27,19 @@ void ExitProcess()
$int 0x40 $int 0x40
} }
segmentDisableFunction:
dword eaxFunctionDestroy(){RETURN 0;} dword eaxFunctionDestroy(){RETURN 0;}
eaxFunctionDestroyEnd: segmentDisableFunctionEnd:
void ____INIT____() void ____INIT____()
{ {
// Disable door kernel // Disable door kernel
EAX = 81; EAX = 81;
EBX = 81; EBX = 81; // Self function
ECX = #eaxFunctionDestroy; ECX = #eaxFunctionDestroy; // Function execute
EDX = #eaxFunctionDestroyEnd-#eaxFunctionDestroy; EDX = #segmentDisableFunction; // Begin segment
ESI = #segmentDisableFunctionEnd; // End segment
$int 0x40 $int 0x40
ExitProcess(); ExitProcess();