Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
e7d5b1bf
Commit
e7d5b1bf
authored
Jan 27, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skins2: fix usage of SHFileOperation on Win32
parent
8aaf0872
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/gui/skins2/win32/win32_factory.cpp
modules/gui/skins2/win32/win32_factory.cpp
+10
-1
No files found.
modules/gui/skins2/win32/win32_factory.cpp
View file @
e7d5b1bf
...
...
@@ -479,7 +479,13 @@ void Win32Factory::changeCursor( CursorType_t type ) const
void
Win32Factory
::
rmDir
(
const
string
&
rPath
)
{
LPWSTR
dir
=
ToWide
(
rPath
.
c_str
()
);
LPWSTR
dir_temp
=
ToWide
(
rPath
.
c_str
()
);
size_t
len
=
wcslen
(
dir_temp
);
LPWSTR
dir
=
(
wchar_t
*
)
malloc
(
(
len
+
1
)
*
sizeof
(
wchar_t
)
);
wcsncpy
(
dir
,
dir_temp
,
len
);
dir
[
len
]
=
'\0'
;
SHFILEOPSTRUCTW
file_op
=
{
NULL
,
FO_DELETE
,
...
...
@@ -493,6 +499,9 @@ void Win32Factory::rmDir( const string &rPath )
L""
};
SHFileOperationW
(
&
file_op
);
free
(
dir_temp
);
free
(
dir
);
}
#endif
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