Avoid GETCWD() warning #1371
This commit is contained in:
parent
43d82c1f21
commit
11fbd49b73
1 changed files with 2 additions and 2 deletions
|
@ -2059,9 +2059,9 @@ const char *GetWorkingDirectory(void)
|
|||
static char currentDir[MAX_FILEPATH_LENGTH];
|
||||
memset(currentDir, 0, MAX_FILEPATH_LENGTH);
|
||||
|
||||
GETCWD(currentDir, MAX_FILEPATH_LENGTH - 1);
|
||||
char *ptr = GETCWD(currentDir, MAX_FILEPATH_LENGTH - 1);
|
||||
|
||||
return currentDir;
|
||||
return ptr;
|
||||
}
|
||||
|
||||
// Get filenames in a directory path (max 512 files)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue