Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
99043f6f
Commit
99043f6f
authored
Sep 02, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Sep 02, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1385 from asmorkalov:winrt_glob_fix
parents
188d3f02
6d310214
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
glob.cpp
modules/core/src/glob.cpp
+5
-3
No files found.
modules/core/src/glob.cpp
View file @
99043f6f
...
...
@@ -91,6 +91,7 @@ namespace
if
(
dir
->
handle
==
INVALID_HANDLE_VALUE
)
{
/*closedir will do all cleanup*/
delete
dir
;
return
0
;
}
return
dir
;
...
...
@@ -140,6 +141,7 @@ static bool isDir(const cv::String& path, DIR* dir)
{
#if defined WIN32 || defined _WIN32 || defined WINCE
DWORD
attributes
;
BOOL
status
=
TRUE
;
if
(
dir
)
attributes
=
dir
->
data
.
dwFileAttributes
;
else
...
...
@@ -149,14 +151,14 @@ static bool isDir(const cv::String& path, DIR* dir)
wchar_t
wpath
[
MAX_PATH
];
size_t
copied
=
mbstowcs
(
wpath
,
path
.
c_str
(),
MAX_PATH
);
CV_Assert
((
copied
!=
MAX_PATH
)
&&
(
copied
!=
(
size_t
)
-
1
));
::
GetFileAttributesExW
(
wpath
,
GetFileExInfoStandard
,
&
all_attrs
);
status
=
::
GetFileAttributesExW
(
wpath
,
GetFileExInfoStandard
,
&
all_attrs
);
#else
::
GetFileAttributesExA
(
path
.
c_str
(),
GetFileExInfoStandard
,
&
all_attrs
);
status
=
::
GetFileAttributesExA
(
path
.
c_str
(),
GetFileExInfoStandard
,
&
all_attrs
);
#endif
attributes
=
all_attrs
.
dwFileAttributes
;
}
return
(
attributes
!=
INVALID_FILE_ATTRIBUTES
)
&&
((
attributes
&
FILE_ATTRIBUTE_DIRECTORY
)
!=
0
);
return
status
&&
((
attributes
&
FILE_ATTRIBUTE_DIRECTORY
)
!=
0
);
#else
(
void
)
dir
;
struct
stat
stat_buf
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment