Skip to content

Commit 9af64f4

Browse files
committed
fix ignore of download ressources
1 parent 59e0fa2 commit 9af64f4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,17 @@ class TurnRedirector : public webrtc::TurnRedirectInterface
6262

6363
std::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);

0 commit comments

Comments
 (0)