Browse Source

Replace MAX_PATH with PATH_MAX (win32)

pull/495/head
Luciano Iam GitHub 6 years ago
parent
commit
c66b5fcbdc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      common/JackMetadata.cpp

+ 2
- 2
common/JackMetadata.cpp View File

@@ -95,8 +95,8 @@ int JackMetadata::PropertyInit()
char dbpath[PATH_MAX + 1];

#ifdef WIN32
ret = GetTempPathA (MAX_PATH, fDBFilesDir);
if ((ret > MAX_PATH) || (ret == 0)) {
ret = GetTempPathA (PATH_MAX, fDBFilesDir);
if ((ret > PATH_MAX) || (ret == 0)) {
jack_error ("cannot get path for temp files");
return -1;
}


Loading…
Cancel
Save