Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1c59b91d
Commit
1c59b91d
authored
Dec 16, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Avoid hardcoding the Unicode string literal lengths.
parent
e8f42fb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
path.c
dlls/ntdll/path.c
+7
-7
No files found.
dlls/ntdll/path.c
View file @
1c59b91d
...
...
@@ -269,12 +269,12 @@ DOS_PATHNAME_TYPE WINAPI RtlDetermineDosPathNameType_U( PCWSTR path )
ULONG
WINAPI
RtlIsDosDeviceName_U
(
PCWSTR
dos_name
)
{
static
const
WCHAR
consoleW
[]
=
{
'\\'
,
'\\'
,
'.'
,
'\\'
,
'C'
,
'O'
,
'N'
,
0
};
static
const
WCHAR
auxW
[
3
]
=
{
'A'
,
'U'
,
'X'
};
static
const
WCHAR
comW
[
3
]
=
{
'C'
,
'O'
,
'M'
};
static
const
WCHAR
conW
[
3
]
=
{
'C'
,
'O'
,
'N'
};
static
const
WCHAR
lptW
[
3
]
=
{
'L'
,
'P'
,
'T'
};
static
const
WCHAR
nulW
[
3
]
=
{
'N'
,
'U'
,
'L'
};
static
const
WCHAR
prnW
[
3
]
=
{
'P'
,
'R'
,
'N'
};
static
const
WCHAR
auxW
[]
=
{
'A'
,
'U'
,
'X'
};
static
const
WCHAR
comW
[]
=
{
'C'
,
'O'
,
'M'
};
static
const
WCHAR
conW
[]
=
{
'C'
,
'O'
,
'N'
};
static
const
WCHAR
lptW
[]
=
{
'L'
,
'P'
,
'T'
};
static
const
WCHAR
nulW
[]
=
{
'N'
,
'U'
,
'L'
};
static
const
WCHAR
prnW
[]
=
{
'P'
,
'R'
,
'N'
};
const
WCHAR
*
start
,
*
end
,
*
p
;
...
...
@@ -343,7 +343,7 @@ BOOLEAN WINAPI RtlDosPathNameToNtPathName_U(PCWSTR dos_path,
PWSTR
*
file_part
,
CURDIR
*
cd
)
{
static
const
WCHAR
LongFileNamePfxW
[
4
]
=
{
'\\'
,
'\\'
,
'?'
,
'\\'
};
static
const
WCHAR
LongFileNamePfxW
[]
=
{
'\\'
,
'\\'
,
'?'
,
'\\'
};
ULONG
sz
,
offset
;
WCHAR
local
[
MAX_PATH
];
LPWSTR
ptr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment