From e53fd177f853d6bf26d2a3a3411dd243fe1ad828 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 28 Mar 2011 04:35:25 +0000 Subject: Implement variable expansion on Windows and use standard LV2_PATH git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3132 a436a847-0d15-0410-975c-d299462d15a1 --- src/world.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 -- cgit v1.2.1