mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 08:53:02 +00:00
fix compilation on linux, TODO: accept wildcards
svn path=/trunk/; revision=6266
This commit is contained in:
parent
68620a65d5
commit
5d276433ca
1 changed files with 4 additions and 4 deletions
|
@ -28,13 +28,13 @@ make_absolute(char *absolute, char *path)
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
if (path[0] == DIR_SEPARATOR_CHAR)
|
if (path[0] == DIR_SEPARATOR_CHAR)
|
||||||
{
|
{
|
||||||
strcpy(buf, path);
|
strcpy(absolute, path);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
getcwd(buf, sizeof(buf));
|
getcwd(absolute, sizeof(absolute));
|
||||||
strcat(buf, DIR_SEPARATOR_STRING);
|
strcat(absolute, DIR_SEPARATOR_STRING);
|
||||||
strcat(buf, path);
|
strcat(absolute, path);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
_fullpath(absolute, path, MAX_PATH);
|
_fullpath(absolute, path, MAX_PATH);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue