mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:03:00 +00:00
[CDFS]
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:
parent
2ffb757038
commit
a3fa598e25
1 changed files with 9 additions and 1 deletions
|
@ -586,7 +586,15 @@ CdfsQueryDirectory(PDEVICE_OBJECT DeviceObject,
|
||||||
Buffer = Irp->UserBuffer;
|
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)
|
if (Ccb->DirectorySearchPattern.Buffer == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue