mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
[FASTFAT]
Handle special cases with search patterns in DoQuery(). This may (should?) fix kernel32_winetest::path test Ref: WDK svn path=/trunk/; revision=57789
This commit is contained in:
parent
483d67dec7
commit
d43aa2dd36
|
@ -427,7 +427,15 @@ DoQuery(PVFAT_IRP_CONTEXT IrpContext)
|
||||||
#endif
|
#endif
|
||||||
FileInformationClass = Stack->Parameters.QueryDirectory.FileInformationClass;
|
FileInformationClass = Stack->Parameters.QueryDirectory.FileInformationClass;
|
||||||
|
|
||||||
if (pSearchPattern)
|
/* 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 (pSearchPattern &&
|
||||||
|
pSearchPattern->Length != 0 && pSearchPattern->Buffer != NULL)
|
||||||
{
|
{
|
||||||
if (!pCcb->SearchPattern.Buffer)
|
if (!pCcb->SearchPattern.Buffer)
|
||||||
{
|
{
|
||||||
|
@ -606,4 +614,4 @@ VfatDirectoryControl(PVFAT_IRP_CONTEXT IrpContext)
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue