File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -62,16 +62,17 @@ class TurnRedirector : public webrtc::TurnRedirectInterface
6262
6363std::string GetExeDir (const char * argv0) {
6464 std::string exeDir;
65- char resolvedPath[PATH_MAX];
6665#ifdef _WIN32
66+ char resolvedPath[MAX_PATH];
6767 if (GetModuleFileNameA (NULL , resolvedPath, MAX_PATH)) {
6868 std::string fullPath (resolvedPath);
69- size_t pos = fullPathStr .find_last_of (" \\ /" );
69+ size_t pos = fullPath .find_last_of (" \\ /" );
7070 if (pos != std::string::npos) {
71- exeDir = fullPathStr .substr (0 , pos + 1 );
71+ exeDir = fullPath .substr (0 , pos + 1 );
7272 }
7373 }
7474#else
75+ char resolvedPath[PATH_MAX];
7576 if (realpath (argv0, resolvedPath)) {
7677 std::string fullPath (resolvedPath);
7778 exeDir = dirname (resolvedPath);
You can’t perform that action at this time.
0 commit comments