Allow apply the fix from r57789 to CDFS. Even if it doesn't solve the issue, it keeps being right
Ref: WDK

svn path=/trunk/; revision=57791
This commit is contained in:
Pierre Schweitzer 2012-12-02 21:04:31 +00:00
parent 2ffb757038
commit a3fa598e25

View file

@ -586,7 +586,15 @@ CdfsQueryDirectory(PDEVICE_OBJECT DeviceObject,
Buffer = Irp->UserBuffer;
}
if (SearchPattern != NULL)
/* Allocate search pattern in case:
* -> We don't have one already in context
* -> We have been given an input pattern
* -> The pattern length is not null
* -> The pattern buffer is not null
* Otherwise, we'll fall later and allocate a match all (*) pattern
*/
if (SearchPattern != NULL &&
SearchPattern->Length != 0 && SearchPattern->Buffer != NULL)
{
if (Ccb->DirectorySearchPattern.Buffer == NULL)
{