mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update source files for bracket style
This commit is contained in:
@ -16,15 +16,17 @@ bool GetResourceDir(std::string& dir) {
|
||||
|
||||
// Retrieve the executable path.
|
||||
ssize_t len = readlink("/proc/self/exe", buff, sizeof(buff) - 1);
|
||||
if (len == -1)
|
||||
if (len == -1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
buff[len] = 0;
|
||||
|
||||
// Remove the executable name from the path.
|
||||
char* pos = strrchr(buff, '/');
|
||||
if (!pos)
|
||||
if (!pos) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Add "files" to the path.
|
||||
strcpy(pos + 1, "files");
|
||||
|
Reference in New Issue
Block a user