Commit dd7eeea1 authored by Andrey Kamaev's avatar Andrey Kamaev

Fixing cv::tempfile on Windows #2093

parent a142a3b7
...@@ -478,7 +478,7 @@ string tempfile( const char* suffix ) ...@@ -478,7 +478,7 @@ string tempfile( const char* suffix )
char temp_file[MAX_PATH + 1] = { 0 }; char temp_file[MAX_PATH + 1] = { 0 };
::GetTempPathA(sizeof(temp_dir), temp_dir); ::GetTempPathA(sizeof(temp_dir), temp_dir);
if(0 != ::GetTempFileNameA(temp_dir, "__opencv_temp.", 0, temp_file)) if(0 == ::GetTempFileNameA(temp_dir, "__opencv_temp.", 0, temp_file))
return string(); return string();
string name = temp_file; string name = temp_file;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment