Author: mnordell
Date: Tue Oct 16 10:55:06 2007
New Revision: 29623
URL:
http://svn.reactos.org/svn/reactos?rev=29623&view=rev
Log:
Unbreak build. The code is used from user-mode too, so CONST can not be used. Use plain
'const' instead.
Modified:
trunk/reactos/lib/cmlib/cmlib.h
trunk/reactos/lib/cmlib/hiveinit.c
Modified: trunk/reactos/lib/cmlib/cmlib.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/cmlib.h?rev=2962…
==============================================================================
--- trunk/reactos/lib/cmlib/cmlib.h (original)
+++ trunk/reactos/lib/cmlib/cmlib.h Tue Oct 16 10:55:06 2007
@@ -211,7 +211,8 @@
PFILE_WRITE_ROUTINE FileWrite,
PFILE_SET_SIZE_ROUTINE FileSetSize,
PFILE_FLUSH_ROUTINE FileFlush,
- IN CONST UNICODE_STRING* FileName);
+ IN const /*CONST*/ UNICODE_STRING* FileName);
+/* NOTE: Can not use CONST here, as this file is used from user-mode too */
VOID CMAPI
HvFree(
Modified: trunk/reactos/lib/cmlib/hiveinit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/hiveinit.c?rev=2…
==============================================================================
--- trunk/reactos/lib/cmlib/hiveinit.c (original)
+++ trunk/reactos/lib/cmlib/hiveinit.c Tue Oct 16 10:55:06 2007
@@ -440,7 +440,7 @@
PFILE_WRITE_ROUTINE FileWrite,
PFILE_SET_SIZE_ROUTINE FileSetSize,
PFILE_FLUSH_ROUTINE FileFlush,
- IN CONST UNICODE_STRING* FileName)
+ IN const UNICODE_STRING* FileName)
{
NTSTATUS Status;
PHHIVE Hive = RegistryHive;