Commit 1c59b91d authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

ntdll: Avoid hardcoding the Unicode string literal lengths.

parent e8f42fb2
...@@ -269,12 +269,12 @@ DOS_PATHNAME_TYPE WINAPI RtlDetermineDosPathNameType_U( PCWSTR path ) ...@@ -269,12 +269,12 @@ DOS_PATHNAME_TYPE WINAPI RtlDetermineDosPathNameType_U( PCWSTR path )
ULONG WINAPI RtlIsDosDeviceName_U( PCWSTR dos_name ) ULONG WINAPI RtlIsDosDeviceName_U( PCWSTR dos_name )
{ {
static const WCHAR consoleW[] = {'\\','\\','.','\\','C','O','N',0}; static const WCHAR consoleW[] = {'\\','\\','.','\\','C','O','N',0};
static const WCHAR auxW[3] = {'A','U','X'}; static const WCHAR auxW[] = {'A','U','X'};
static const WCHAR comW[3] = {'C','O','M'}; static const WCHAR comW[] = {'C','O','M'};
static const WCHAR conW[3] = {'C','O','N'}; static const WCHAR conW[] = {'C','O','N'};
static const WCHAR lptW[3] = {'L','P','T'}; static const WCHAR lptW[] = {'L','P','T'};
static const WCHAR nulW[3] = {'N','U','L'}; static const WCHAR nulW[] = {'N','U','L'};
static const WCHAR prnW[3] = {'P','R','N'}; static const WCHAR prnW[] = {'P','R','N'};
const WCHAR *start, *end, *p; const WCHAR *start, *end, *p;
...@@ -343,7 +343,7 @@ BOOLEAN WINAPI RtlDosPathNameToNtPathName_U(PCWSTR dos_path, ...@@ -343,7 +343,7 @@ BOOLEAN WINAPI RtlDosPathNameToNtPathName_U(PCWSTR dos_path,
PWSTR* file_part, PWSTR* file_part,
CURDIR* cd) CURDIR* cd)
{ {
static const WCHAR LongFileNamePfxW[4] = {'\\','\\','?','\\'}; static const WCHAR LongFileNamePfxW[] = {'\\','\\','?','\\'};
ULONG sz, offset; ULONG sz, offset;
WCHAR local[MAX_PATH]; WCHAR local[MAX_PATH];
LPWSTR ptr; LPWSTR ptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment