main.cpp: Ignore errors from portability::rmdir_r
Whereas GNU/Linux returns 0 even if the directory does not exist, on Windows it returns non-zero since SHFileOperation fails in such circumstances. git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9624 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 590a61e5e540a7684bd32fefc4624838ca38188b Former-commit-id: 789bc137b1fc746afc0a1f136954e385c1b1a727
This commit is contained in:
parent
e721a4ad66
commit
ed6975a8ca
1 changed files with 1 additions and 5 deletions
|
@ -171,11 +171,7 @@ main(int argc, char *argv[])
|
|||
|
||||
tmp += "/tmp/";
|
||||
|
||||
if (portability::rmdir_r(tmp.c_str()))
|
||||
{
|
||||
GfLogError("Failed to remove directory: %s\n", tmp.c_str());
|
||||
return 1;
|
||||
}
|
||||
portability::rmdir_r(tmp.c_str());
|
||||
|
||||
// Some more checks about command line options.
|
||||
std::string strRaceToStart;
|
||||
|
|
Loading…
Reference in a new issue