mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Fix OS::GetExecutablePath for platform_none
This commit is contained in:
1 parent
8b1082825c
commit
00a1d61cc8
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1648,7 +1648,7 @@ static void Load(int argc, char *argv[]) {
|
||||
// as a last ditch effort, fallback on argv[0] ?
|
||||
process->Set(String::NewSymbol("execPath"), String::New(argv[0]));
|
||||
} else {
|
||||
process->Set(String::NewSymbol("execPath"), String::New(execPath));
|
||||
process->Set(String::NewSymbol("execPath"), String::New(execPath, size));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ int OS::GetMemory(size_t *rss, size_t *vsize) {
|
||||
|
||||
int OS::GetExecutablePath(char *buffer, size_t* size) {
|
||||
*size = 0;
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
} // namespace node
|
||||
Reference in new issue
Block a user