mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[SHELL32] Fix assertion failure in CDirectoryWatcher.cpp
CORE-17511
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user