mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
[SHELL32] Fix assertion failure in CDirectoryWatcher.cpp
CORE-17511
This commit is contained in:
parent
c59ab8fce1
commit
880252fd46
1 changed files with 5 additions and 2 deletions
|
@ -162,8 +162,11 @@ void CDirectoryWatcher::ProcessNotification()
|
|||
// convert to long pathname if it contains '~'
|
||||
if (StrChrW(szPath, L'~') != NULL)
|
||||
{
|
||||
GetLongPathNameW(szPath, szName, _countof(szName));
|
||||
lstrcpynW(szPath, szName, _countof(szPath));
|
||||
if (GetLongPathNameW(szPath, szName, _countof(szName)) &&
|
||||
!PathIsRelativeW(szName))
|
||||
{
|
||||
lstrcpynW(szPath, szName, _countof(szPath));
|
||||
}
|
||||
}
|
||||
|
||||
// convert action to event
|
||||
|
|
Loading…
Reference in a new issue