ntdll: Make some data const

Dmitry Timoshkov dmitry at codeweavers.com
Wed Nov 29 04:02:45 CST 2006


Hello,

Changelog:
    ntdll: Make some data const.

---
 dlls/ntdll/om.c   |    4 ++--
 dlls/ntdll/path.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/ntdll/om.c b/dlls/ntdll/om.c
index 5d2a7d6..af03e7d 100644
--- a/dlls/ntdll/om.c
+++ b/dlls/ntdll/om.c
@@ -155,8 +155,8 @@ NtQuerySecurityObject(
 	IN ULONG Length,
 	OUT PULONG ResultLength)
 {
-	static SID_IDENTIFIER_AUTHORITY localSidAuthority = {SECURITY_NT_AUTHORITY};
-	static SID_IDENTIFIER_AUTHORITY worldSidAuthority = {SECURITY_WORLD_SID_AUTHORITY};
+	static const SID_IDENTIFIER_AUTHORITY localSidAuthority = {SECURITY_NT_AUTHORITY};
+	static const SID_IDENTIFIER_AUTHORITY worldSidAuthority = {SECURITY_WORLD_SID_AUTHORITY};
 	BYTE Buffer[256];
 	PISECURITY_DESCRIPTOR_RELATIVE psd = (PISECURITY_DESCRIPTOR_RELATIVE)Buffer;
 	UINT BufferIndex = sizeof(SECURITY_DESCRIPTOR_RELATIVE);
diff --git a/dlls/ntdll/path.c b/dlls/ntdll/path.c
index e4af89a..a42682d 100644
--- a/dlls/ntdll/path.c
+++ b/dlls/ntdll/path.c
@@ -896,7 +896,7 @@ DWORD WINAPI RtlGetLongestNtPathLength(v
 BOOLEAN WINAPI RtlIsNameLegalDOS8Dot3( const UNICODE_STRING *unicode,
                                        OEM_STRING *oem, BOOLEAN *spaces )
 {
-    static const char* illegal = "*?<>|\"+=,;[]:/\\\345";
+    static const char illegal[] = "*?<>|\"+=,;[]:/\\\345";
     int dot = -1;
     int i;
     char buffer[12];
-- 
1.4.2






More information about the wine-patches mailing list