tinus <o112w8r02@sneakemail.com>
Use ExFreePool instead of RtlFreeUnicodeString.
Modified: trunk/reactos/drivers/fs/cdfs/close.c
Modified: trunk/reactos/drivers/fs/cdfs/create.c

Modified: trunk/reactos/drivers/fs/cdfs/close.c
--- trunk/reactos/drivers/fs/cdfs/close.c	2005-05-09 12:32:10 UTC (rev 15186)
+++ trunk/reactos/drivers/fs/cdfs/close.c	2005-05-09 16:00:21 UTC (rev 15187)
@@ -69,7 +69,10 @@
       CdfsReleaseFCB(DeviceExt, FileObject->FsContext);
     }
 
-  RtlFreeUnicodeString(&Ccb->DirectorySearchPattern);
+  if (Ccb->DirectorySearchPattern.Buffer)
+    {
+      ExFreePool(Ccb->DirectorySearchPattern.Buffer);
+    }
   ExFreePool(Ccb);
 
   return(STATUS_SUCCESS);

Modified: trunk/reactos/drivers/fs/cdfs/create.c
--- trunk/reactos/drivers/fs/cdfs/create.c	2005-05-09 12:32:10 UTC (rev 15186)
+++ trunk/reactos/drivers/fs/cdfs/create.c	2005-05-09 16:00:21 UTC (rev 15187)
@@ -183,8 +183,8 @@
 				     Fcb,
 				     FileObject);
 
-  if (FileName == &AbsFileName)
-    RtlFreeUnicodeString(&AbsFileName);
+  if ((FileName == &AbsFileName) && AbsFileName.Buffer)
+    ExFreePool(AbsFileName.Buffer);
 
   return Status;
 }