From dd7eeea11809d4d3091698cfcfd8e31075036285 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Tue, 26 Jun 2012 09:07:37 +0000 Subject: [PATCH] Fixing cv::tempfile on Windows #2093 --- modules/core/src/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp index 439d0bf1cb..8a78fafed9 100644 --- a/modules/core/src/system.cpp +++ b/modules/core/src/system.cpp @@ -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, "__opencv_temp.", 0, temp_file)) return string(); string name = temp_file;