|
|
@ -139,7 +139,7 @@ const char dir_separators[] = "/"; |
|
|
|
|
|
|
|
|
|
|
|
static bool isDir(const cv::String& path, DIR* dir) |
|
|
|
static bool isDir(const cv::String& path, DIR* dir) |
|
|
|
{ |
|
|
|
{ |
|
|
|
#if defined _WIN32 || defined WINCE |
|
|
|
#if defined _WIN32 || defined _WIN32_WCE |
|
|
|
DWORD attributes; |
|
|
|
DWORD attributes; |
|
|
|
BOOL status = TRUE; |
|
|
|
BOOL status = TRUE; |
|
|
|
if (dir) |
|
|
|
if (dir) |
|
|
@ -147,7 +147,7 @@ static bool isDir(const cv::String& path, DIR* dir) |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
WIN32_FILE_ATTRIBUTE_DATA all_attrs; |
|
|
|
WIN32_FILE_ATTRIBUTE_DATA all_attrs; |
|
|
|
#ifdef WINRT |
|
|
|
#if defined WINRT || defined _WIN32_WCE |
|
|
|
wchar_t wpath[MAX_PATH]; |
|
|
|
wchar_t wpath[MAX_PATH]; |
|
|
|
size_t copied = mbstowcs(wpath, path.c_str(), MAX_PATH); |
|
|
|
size_t copied = mbstowcs(wpath, path.c_str(), MAX_PATH); |
|
|
|
CV_Assert((copied != MAX_PATH) && (copied != (size_t)-1)); |
|
|
|
CV_Assert((copied != MAX_PATH) && (copied != (size_t)-1)); |
|
|
|