mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 14:09:10 +00:00
[SHELL32] Fix assertion failure in CDirectoryWatcher.cpp
CORE-17511
This commit is contained in:
parent
c59ab8fce1
commit
880252fd46
|
@ -162,9 +162,12 @@ void CDirectoryWatcher::ProcessNotification()
|
||||||
// convert to long pathname if it contains '~'
|
// convert to long pathname if it contains '~'
|
||||||
if (StrChrW(szPath, L'~') != NULL)
|
if (StrChrW(szPath, L'~') != NULL)
|
||||||
{
|
{
|
||||||
GetLongPathNameW(szPath, szName, _countof(szName));
|
if (GetLongPathNameW(szPath, szName, _countof(szName)) &&
|
||||||
|
!PathIsRelativeW(szName))
|
||||||
|
{
|
||||||
lstrcpynW(szPath, szName, _countof(szPath));
|
lstrcpynW(szPath, szName, _countof(szPath));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// convert action to event
|
// convert action to event
|
||||||
fDir = PathIsDirectoryW(szPath);
|
fDir = PathIsDirectoryW(szPath);
|
||||||
|
|
Loading…
Reference in a new issue