[NTOSKRNL] Make the CcWaitForCurrentLazyWriterActivity() stub return success instead of hacking FSDs.

Suggested by Thomas
This commit is contained in:
Pierre Schweitzer 2017-11-06 21:45:55 +01:00
parent 03d5be6437
commit e88eeb21af
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
3 changed files with 1 additions and 28 deletions

View file

@ -225,16 +225,6 @@ Return Value:
CdReleaseVcb( IrpContext, Vcb ); CdReleaseVcb( IrpContext, Vcb );
Status = CcWaitForCurrentLazyWriterActivity(); Status = CcWaitForCurrentLazyWriterActivity();
#ifdef __REACTOS__
if (Status == STATUS_NOT_IMPLEMENTED)
{
Status = STATUS_SUCCESS;
}
else
{
DbgPrint("CcWaitForCurrentLazyWriterActivity got implemented! Remove hack in %s:%s\n", __FILE__, __LINE__);
}
#endif
// //
// This is intentional. If we were able to get the Vcb before, just // This is intentional. If we were able to get the Vcb before, just

View file

@ -895,23 +895,6 @@ Index: drivers/filesystems/cdfs_new/fsctrl.c
CdIsVolumeDirty ( CdIsVolumeDirty (
IN PIRP_CONTEXT IrpContext, IN PIRP_CONTEXT IrpContext,
IN PIRP Irp IN PIRP Irp
@@ -225,6 +225,16 @@
CdReleaseVcb( IrpContext, Vcb );
Status = CcWaitForCurrentLazyWriterActivity();
+#ifdef __REACTOS__
+ if (Status == STATUS_NOT_IMPLEMENTED)
+ {
+ Status = STATUS_SUCCESS;
+ }
+ else
+ {
+ DbgPrint("CcWaitForCurrentLazyWriterActivity got implemented! Remove hack in %s:%s\n", __FILE__, __LINE__);
+ }
+#endif
//
// This is intentional. If we were able to get the Vcb before, just
@@ -918,7 +919,7 @@ @@ -918,7 +919,7 @@
if (CdIsRemount( IrpContext, Vcb, &OldVcb )) { if (CdIsRemount( IrpContext, Vcb, &OldVcb )) {

View file

@ -524,7 +524,7 @@ CcWaitForCurrentLazyWriterActivity (
VOID) VOID)
{ {
UNIMPLEMENTED; UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED; return STATUS_SUCCESS;
} }
/* /*