Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/filesystems/udfs/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ UDFProcessException(
}
else if ((ExceptionCode == STATUS_VERIFY_REQUIRED) &&
FlagOn(IrpContext->Flags, IRP_CONTEXT_FLAG_TOP_LEVEL) &&
KeAreAllApcsDisabled()) {
(KeGetCurrentIrql() >= APC_LEVEL)) {

ExceptionCode = UDFFsdPostRequest(IrpContext, Irp);
}
Expand Down
5 changes: 5 additions & 0 deletions drivers/filesystems/udfs/udffs.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ typedef FILE_ID *PFILE_ID;
#undef MdlMappingNoExecute
#define MdlMappingNoExecute 0
#define NonPagedPoolNx NonPagedPool
// POOL_NX_ALLOCATION (0x200) is a Windows 8+ flag not recognized on XP-based
// systems. Passing it to ExInitialize*LookasideList would result in an invalid
// pool type on Windows XP / POSReady 2009.
#undef POOL_NX_ALLOCATION
#define POOL_NX_ALLOCATION 0
#endif

// #define NDEBUG
Expand Down
7 changes: 5 additions & 2 deletions drivers/filesystems/udfs/udfinit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,11 @@ DriverEntry(
FilterCallbacks.PreAcquireForSectionSynchronization = UDFFilterCallbackAcquireForCreateSection;

RC = FsRtlRegisterFileSystemFilterCallbacks(DriverObject, &FilterCallbacks);
if (!NT_SUCCESS(RC))
try_return(RC);
if (!NT_SUCCESS(RC)) {
// On Windows XP, this call may fail. Treat as non-fatal.
UDFPrint(("UDF: FsRtlRegisterFileSystemFilterCallbacks failed with %x, continuing\n", RC));
RC = STATUS_SUCCESS;
}

UDFPrint(("UDF: Create CD dev obj\n"));
if (!NT_SUCCESS(RC = UDFCreateFsDeviceObject(UDF_FS_NAME_CD,
Expand Down