Fixed automatic temporary files cleaning with run.py on Windows

This commit is contained in:
Andrey Kamaev
2012-07-02 12:23:57 +00:00
parent ad6929b6a4
commit 565a8dc30d
2 changed files with 11 additions and 4 deletions

View File

@@ -478,7 +478,7 @@ string tempfile( const char* suffix )
char temp_file[MAX_PATH + 1] = { 0 };
::GetTempPathA(sizeof(temp_dir), temp_dir);
if(0 == ::GetTempFileNameA(temp_dir, "__opencv_temp.", 0, temp_file))
if(0 == ::GetTempFileNameA(temp_dir, "ocv", 0, temp_file))
return string();
string name = temp_file;