https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f032b77c5103145cc6f52…
commit f032b77c5103145cc6f523dd3d72b719a2692f37
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sat Jan 27 22:02:01 2018 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sat Jan 27 22:02:01 2018 +0100
[NTOSKRNL] Fix MSVC build?
---
ntoskrnl/cc/view.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c
index 7112e02373..78167505fa 100644
--- a/ntoskrnl/cc/view.c
+++ b/ntoskrnl/cc/view.c
@@ -71,7 +71,11 @@ ULONG CcTotalDirtyPages = 0;
LIST_ENTRY CcDeferredWrites;
KSPIN_LOCK CcDeferredWriteSpinLock;
LIST_ENTRY CcCleanSharedCacheMapList;
+#ifndef _MSC_VER
LARGE_INTEGER CcIdleDelay = {.QuadPart = (LONGLONG)-1*1000*1000*10};
+#else
+LARGE_INTEGER CcIdleDelay = {(LONGLONG)-1*1000*1000*10};
+#endif
/* Internal vars (ROS):
* - Event to notify lazy writer to shutdown