mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[SHELL32]
- Only complain about _OpenDirectory failing if it actually failed CORE-1171 svn path=/trunk/; revision=68725
This commit is contained in:
parent
d811e32e7a
commit
9548c182dc
1 changed files with 12 additions and 3 deletions
|
@ -250,9 +250,18 @@ SHChangeNotifyRegister(
|
|||
item->apidl[i].backBuffer = SHAlloc(BUFFER_SIZE);
|
||||
item->apidl[i].overlapped.hEvent = &item->apidl[i];
|
||||
|
||||
if (fSources & SHCNRF_InterruptLevel && _OpenDirectory( &item->apidl[i] ))
|
||||
QueueUserAPC(_AddDirectoryProc, m_hThread, (ULONG_PTR) &item->apidl[i] );
|
||||
else ERR("_OpenDirectory Failed\n");
|
||||
if (fSources & SHCNRF_InterruptLevel)
|
||||
{
|
||||
if (_OpenDirectory( &item->apidl[i] ))
|
||||
QueueUserAPC( _AddDirectoryProc, m_hThread, (ULONG_PTR) &item->apidl[i] );
|
||||
else
|
||||
{
|
||||
CHAR buffer[MAX_PATH];
|
||||
if (!SHGetPathFromIDListA( item->apidl[i].pidl, buffer ))
|
||||
strcpy( buffer, "<unknown>" );
|
||||
ERR("_OpenDirectory failed for %s\n", buffer);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
item->hwnd = hwnd;
|
||||
|
|
Loading…
Reference in a new issue