Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ext2fsd: Fix Ext2Mgr hang at startup.
- Partial revert of git commits d8632a1 and d570f95
- Ext3Fsd/memory.c | 12 ++++++++----
- 1 file changed, 8 insertions(+), 4 deletions(-)
- diff --git a/Ext3Fsd/memory.c b/Ext3Fsd/memory.c
- index f8f333e..68d5edb 100644
- --- a/Ext3Fsd/memory.c
- +++ b/Ext3Fsd/memory.c
- @@ -2428,7 +2428,15 @@ Ext2InitializeVcb( IN PEXT2_IRP_CONTEXT IrpContext,
- /* initialize UUID and serial number */
- if (Ext2IsNullUuid(sb->s_uuid)) {
- ExUuidCreate((UUID *)sb->s_uuid);
- + } else {
- + /* query parameters from registry */
- + if (!NT_SUCCESS(Ext2PerformRegistryVolumeParams(Vcb))) {
- + /* don't mount this volume */
- + Status = STATUS_UNRECOGNIZED_VOLUME;
- + __leave;
- + }
- }
- +
- Vpb->SerialNumber = ((ULONG*)sb->s_uuid)[0] +
- ((ULONG*)sb->s_uuid)[1] +
- ((ULONG*)sb->s_uuid)[2] +
- @@ -2713,10 +2721,6 @@ Ext2InitializeVcb( IN PEXT2_IRP_CONTEXT IrpContext,
- /* get anything doen, then refer target device */
- ObReferenceObject(Vcb->TargetDeviceObject);
- -
- - /* query parameters from registry */
- - Ext2PerformRegistryVolumeParams(Vcb);
- -
- SetLongFlag(Vcb->Flags, VCB_INITIALIZED);
- } __finally {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement