Author: tfaber
Date: Mon Aug 17 08:03:02 2015
New Revision: 68725
URL:
http://svn.reactos.org/svn/reactos?rev=68725&view=rev
Log:
[SHELL32]
- Only complain about _OpenDirectory failing if it actually failed
CORE-1171
Modified:
trunk/reactos/dll/win32/shell32/wine/changenotify.c
Modified: trunk/reactos/dll/win32/shell32/wine/changenotify.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/wine/cha…
==============================================================================
--- trunk/reactos/dll/win32/shell32/wine/changenotify.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/wine/changenotify.c [iso-8859-1] Mon Aug 17 08:03:02
2015
@@ -250,9 +250,18 @@
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;