- Use volatile with PagesLocked and MdlAddress. Fixes bug #3674.

- For safety may have to declare all variable used in except this way.

svn path=/trunk/; revision=38077
This commit is contained in:
Michael Martin 2008-12-14 12:14:00 +00:00
parent 5e305bbdf6
commit 1605d036fe

View file

@ -65,9 +65,9 @@ MiDoMappedCopy(IN PEPROCESS SourceProcess,
PMDL Mdl = (PMDL)MdlBuffer;
SIZE_T TotalSize, CurrentSize, RemainingSize;
volatile BOOLEAN FailedInProbe = FALSE, FailedInMapping = FALSE, FailedInMoving;
BOOLEAN PagesLocked;
volatile BOOLEAN PagesLocked;
PVOID CurrentAddress = SourceAddress, CurrentTargetAddress = TargetAddress;
PVOID MdlAddress;
volatile PVOID MdlAddress;
KAPC_STATE ApcState;
BOOLEAN HaveBadAddress;
ULONG_PTR BadAddress;