[FASTFAT] Only initialize directory cache on use.
[reactos.git] / drivers / filesystems / fastfat / dir.c
index dd53080..18c6dcc 100644 (file)
@@ -599,6 +599,7 @@ DoQuery(
 
     DPRINT("Buffer=%p tofind=%wZ\n", Buffer, &pCcb->SearchPattern);
 
+    DirContext.DeviceExt = IrpContext->DeviceExt;
     DirContext.LongNameU.Buffer = LongNameBuffer;
     DirContext.LongNameU.MaximumLength = sizeof(LongNameBuffer);
     DirContext.ShortNameU.Buffer = ShortNameBuffer;