Changeset 364 in Main


Ignore:
Timestamp:
Oct 17, 2024, 9:47:01 AM (4 weeks ago)
Author:
Nishi
Message:

fix path stuff

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/dir.c

    r315 r364  
    7070        return r;
    7171#else
    72         DIR* dir = opendir(path);
     72        char* fxpath = cm_strcat(path, "/");
     73        DIR* dir = opendir(fxpath);
    7374        if(dir != NULL) {
    7475                char** r = malloc(sizeof(*r));
     
    109110
    110111                closedir(dir);
     112                free(fxpath);
    111113
    112114                return r;
    113115        } else {
     116                free(fxpath);
    114117                return NULL;
    115118        }
  • trunk/Server/server.c

    r361 r364  
    974974#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)
    975975#ifdef __NETWARE__
     976        ExitThread(EXIT_THREAD, 0);
    976977#elif defined(__DOS__)
    977978#else
Note: See TracChangeset for help on using the changeset viewer.