From 41433932bcafb2041c7ae0f4ccc43f7cec25e21f Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 17 Oct 2024 04:26:00 +0000 Subject: [PATCH] fix git-svn-id: file:///raid/svn-personal/tewi/trunk@368 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/tw_module.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Server/tw_module.h b/Server/tw_module.h index b8bd909..3a4d8e1 100644 --- a/Server/tw_module.h +++ b/Server/tw_module.h @@ -12,7 +12,17 @@ extern "C" { #ifdef __NETWARE__ #include -#define END_MODULE int main(){DestroyScreen(GetCurrentScreen());while(1);return 0;} +#include +#include +#define END_MODULE void _thread(void* arg){ \ + while(1); \ + } \ + int main(){ \ + DestroyScreen(GetCurrentScreen()); \ + BeginThread(_thread, NULL, 0, NULL); \ + ThreadSwitch(); \ + return 0; \ + } #else #define END_MODULE #endif -- 2.43.0