54 char* res = realpath(path, buffer);
58 return g_strdup(buffer);
62 fprintf(stderr,
"path lookup '%s' fails with: '%s'\n", path, strerror(errno));
70 rc = GetFullPathNameA(path, 1, &
dummy, NULL);
75 return g_strdup(path);
79 buffer = g_malloc(len);
81 rc = GetFullPathNameA(path, len, buffer, NULL);
83 if(rc == 0 || rc > len)
88 return g_strdup(path);