Author: dgorbachev
Date: Thu Nov 21 20:44:49 2013
New Revision: 61066
URL:
http://svn.reactos.org/svn/reactos?rev=61066&view=rev
Log:
[NTOSKRNL]
Trick GCC into not optimizing out RtlMoveMemory.
Modified:
trunk/reactos/ntoskrnl/vdm/vdmmain.c
Modified: trunk/reactos/ntoskrnl/vdm/vdmmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/vdm/vdmmain.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/vdm/vdmmain.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/vdm/vdmmain.c [iso-8859-1] Thu Nov 21 20:44:49 2013
@@ -93,7 +93,7 @@
NTSTATUS Status;
HANDLE PhysMemHandle;
PVOID BaseAddress;
- PVOID NullAddress = NULL;
+ volatile PVOID NullAddress = NULL;
LARGE_INTEGER Offset;
ULONG ViewSize;