]> Nishi Git Mirror - tewi.git/commitdiff
update stuff
authorNishi <nishi@nishi.boats>
Thu, 17 Oct 2024 00:54:56 +0000 (00:54 +0000)
committerNishi <nishi@nishi.boats>
Thu, 17 Oct 2024 00:54:56 +0000 (00:54 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@366 8739d7e6-ffea-ec47-b151-bdff447c6205

Module/Makefile
Server/module.c

index 3790510722e1e619519df3db807a5e6053731691..77ce42f3895585a00ce4887eb19fe2219ae43e69 100644 (file)
@@ -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
index b04d912d76e8114d00371d31eb3ee64d46788c7e..a35a83e5a2c05d87e65ba884bed089ffd59a9b0e 100644 (file)
@@ -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);