From: Nishi Date: Thu, 17 Oct 2024 00:54:56 +0000 (+0000) Subject: update stuff X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=c1201f45a35a4187eea02cac884eb35a0b1240c5;p=tewi.git update stuff git-svn-id: file:///raid/svn-personal/tewi/trunk@366 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Module/Makefile b/Module/Makefile index 3790510..77ce42f 100644 --- a/Module/Makefile +++ b/Module/Makefile @@ -18,4 +18,4 @@ all: mod_cgi$(LIBSUF) mod_proxy$(LIBSUF) $(CC) $(CFLAGS) -I ../Server -c -o $@ $< clean: - rm -f *.o *.so *.a *.dll *.tds *.obj + rm -f *.o *.so *.a *.dll *.tds *.obj *.nlm diff --git a/Server/module.c b/Server/module.c index b04d912..a35a83e 100644 --- a/Server/module.c +++ b/Server/module.c @@ -60,6 +60,10 @@ void* tw_module_load(const char* path) { lib = (void*)mod; #elif defined(__NETWARE__) *hnd = FindNLMHandle(path); + if(*hnd == 0){ + free(hnd); + hnd = NULL; + } lib = (void*)hnd; #else lib = LoadLibraryA(path);