Fixing cv::tempfile on Windows #2093
This commit is contained in:
parent
a142a3b78a
commit
dd7eeea118
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user