Patch level : 12.0 1174
Files correlati : xvaga.dll Commento: la cancellazione multipla di file con un direttorio relativo dava un warning perchè cercava di riagguinge al nome dei file il direttorio stesso
This commit is contained in:
parent
0ae3d59a60
commit
c0c7f2e1f6
@ -319,11 +319,15 @@ int xvt_fsys_files_remove(const char* src, SLIST names)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
wxString srcpath(src);
|
||||||
|
|
||||||
for (SLIST_ELT e = xvt_slist_get_first(names); e; e = xvt_slist_get_next(names, e))
|
for (SLIST_ELT e = xvt_slist_get_first(names); e; e = xvt_slist_get_next(names, e))
|
||||||
{
|
{
|
||||||
wxFileName n = xvt_slist_get(names, e, nullptr);
|
wxFileName n = xvt_slist_get(names, e, nullptr);
|
||||||
if (!n.IsAbsolute())
|
wxString name = n.GetFullPath();
|
||||||
n.PrependDir(src);
|
|
||||||
|
if (!n.IsAbsolute() && name.Find(srcpath) == wxNOT_FOUND)
|
||||||
|
n.PrependDir(src);
|
||||||
wxWritableWCharBuffer wcb = n.GetFullPath().wchar_str();
|
wxWritableWCharBuffer wcb = n.GetFullPath().wchar_str();
|
||||||
IShellItem* psiItem = nullptr;
|
IShellItem* psiItem = nullptr;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user