diff options
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c index 39262e6..5493cba 100644 --- a/src/world.c +++ b/src/world.c @@ -514,6 +514,10 @@ expand(const char* path) } wordfree(&p); +#elif defined(__WIN32__) + static const size_t len = 32767; + char* ret = malloc(len); + ExpandEnvironmentStrings(path, ret, len); #else char* ret = slv2_strdup(path); #endif |