[FASTFAT_NEW] Fix ReactOS compiler workaround

This commit is contained in:
Jérôme Gardou 2020-12-01 17:51:15 +01:00
parent 57cf5cdc5d
commit 9e6866402b

View file

@ -354,7 +354,7 @@ Return Value:
return Fave; return Fave;
} }
VOID VOID
FatSetupAllocationSupport ( FatSetupAllocationSupport (
IN PIRP_CONTEXT IrpContext, IN PIRP_CONTEXT IrpContext,
@ -544,7 +544,7 @@ Arguments:
return; return;
} }
VOID VOID
FatTearDownAllocationSupport ( FatTearDownAllocationSupport (
IN PIRP_CONTEXT IrpContext, IN PIRP_CONTEXT IrpContext,
@ -613,7 +613,7 @@ Return Value:
return; return;
} }
_Requires_lock_held_(_Global_critical_region_) _Requires_lock_held_(_Global_critical_region_)
VOID VOID
FatLookupFileAllocation ( FatLookupFileAllocation (
@ -1077,7 +1077,7 @@ Arguments:
return; return;
} }
_Requires_lock_held_(_Global_critical_region_) _Requires_lock_held_(_Global_critical_region_)
VOID VOID
FatAddFileAllocation ( FatAddFileAllocation (
@ -1679,7 +1679,7 @@ Return Value:
} _SEH2_END; } _SEH2_END;
} }
_Requires_lock_held_(_Global_critical_region_) _Requires_lock_held_(_Global_critical_region_)
VOID VOID
FatLookupFileAllocationSize ( FatLookupFileAllocationSize (
@ -1739,7 +1739,7 @@ Arguments:
return; return;
} }
_Requires_lock_held_(_Global_critical_region_) _Requires_lock_held_(_Global_critical_region_)
VOID VOID
FatAllocateDiskSpace ( FatAllocateDiskSpace (
@ -2593,7 +2593,7 @@ Arguments:
return; return;
} }
// //
// Limit our zeroing writes to 1 MB. // Limit our zeroing writes to 1 MB.
@ -3155,7 +3155,7 @@ Return Value:
return; return;
} }
_Requires_lock_held_(_Global_critical_region_) _Requires_lock_held_(_Global_critical_region_)
VOID VOID
FatSplitAllocation ( FatSplitAllocation (
@ -3341,7 +3341,7 @@ Return Value:
return; return;
} }
_Requires_lock_held_(_Global_critical_region_) _Requires_lock_held_(_Global_critical_region_)
VOID VOID
FatMergeAllocation ( FatMergeAllocation (
@ -3464,7 +3464,7 @@ Return Value:
return; return;
} }
// //
// Internal support routine // Internal support routine
// //
@ -3556,7 +3556,7 @@ Return Value:
} }
} }
// //
// Internal support routine // Internal support routine
// //
@ -3744,7 +3744,7 @@ Arguments:
return; return;
} }
_Requires_lock_held_(_Global_critical_region_) _Requires_lock_held_(_Global_critical_region_)
VOID VOID
FatSetFatEntry ( FatSetFatEntry (
@ -4130,7 +4130,7 @@ Arguments:
return; return;
} }
// //
// Internal support routine // Internal support routine
// //
@ -4646,7 +4646,7 @@ Return Value:
return; return;
} }
// //
// Internal support routine // Internal support routine
// //
@ -4715,7 +4715,7 @@ Return Value:
return Log; return Log;
} }
VOID VOID
FatExamineFatEntries( FatExamineFatEntries(
IN PIRP_CONTEXT IrpContext, IN PIRP_CONTEXT IrpContext,
@ -5105,8 +5105,8 @@ Return Value:
FatEntry = *((PULONG)FatBuffer)++; FatEntry = *((PULONG)FatBuffer)++;
FatEntry = FatEntry & FAT32_ENTRY_MASK; FatEntry = FatEntry & FAT32_ENTRY_MASK;
#else #else
FatEntry = *FatBuffer; FatEntry = *((PULONG)FatBuffer);
FatBuffer += 1; FatBuffer += 2; /* PUSHORT FatBuffer */
FatEntry = FatEntry & FAT32_ENTRY_MASK; FatEntry = FatEntry & FAT32_ENTRY_MASK;
#endif #endif