32 char* res = realpath(path, buffer);
36 return g_strdup(buffer);
40 fprintf(stderr,
"path lookup '%s' fails with: '%s'\n", path, strerror(errno));
48 rc = GetFullPathNameA(path, 1, &
dummy, NULL);
53 return g_strdup(path);
57 buffer = g_malloc(len);
59 rc = GetFullPathNameA(path, len, buffer, NULL);
61 if(rc == 0 || rc > len)
65 return g_strdup(path);