Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
5d5d1a3a
Commit
5d5d1a3a
authored
Feb 21, 2018
by
Hugo Beauzée-Luyssen
Browse files
utils: Fix win32 build
parent
7f79dbab
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/utils/Directory.cpp
View file @
5d5d1a3a
...
...
@@ -56,7 +56,8 @@ namespace
bool
isDirectory
(
const
std
::
string
&
path
)
{
#ifdef _WIN32
auto
attr
=
GetFileAttributes
(
path
.
c_str
()
);
auto
wpath
=
charset
::
ToWide
(
path
.
c_str
()
);
auto
attr
=
GetFileAttributes
(
wpath
.
get
()
);
if
(
attr
==
INVALID_FILE_ATTRIBUTES
)
{
DWORD
errVal
=
GetLastError
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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