Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9bf8a5ec
Commit
9bf8a5ec
authored
Aug 28, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Simplify constant string length calculation.
parent
54017b0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
volume.c
dlls/kernel32/volume.c
+2
-2
No files found.
dlls/kernel32/volume.c
View file @
9bf8a5ec
...
...
@@ -1031,7 +1031,7 @@ BOOL WINAPI GetVolumeNameForVolumeMountPointA( LPCSTR path, LPSTR volume, DWORD
BOOL
WINAPI
GetVolumeNameForVolumeMountPointW
(
LPCWSTR
path
,
LPWSTR
volume
,
DWORD
size
)
{
static
const
WCHAR
prefixW
[]
=
{
'\\'
,
'D'
,
'o'
,
's'
,
'D'
,
'e'
,
'v'
,
'i'
,
'c'
,
'e'
,
's'
,
'\\'
,
0
};
static
const
WCHAR
volumeW
[]
=
{
'\\'
,
'?'
,
'?'
,
'\\'
,
'V'
,
'o'
,
'l'
,
'u'
,
'm'
,
'e'
,
'{'
,
0
};
static
const
WCHAR
volumeW
[]
=
{
'\\'
,
'?'
,
'?'
,
'\\'
,
'V'
,
'o'
,
'l'
,
'u'
,
'm'
,
'e'
,
'{'
};
static
const
WCHAR
trailingW
[]
=
{
'\\'
,
0
};
MOUNTMGR_MOUNT_POINT
*
input
=
NULL
,
*
o1
;
...
...
@@ -1133,7 +1133,7 @@ BOOL WINAPI GetVolumeNameForVolumeMountPointW( LPCWSTR path, LPWSTR volume, DWOR
debugstr_wn
((
WCHAR
*
)((
char
*
)
output
+
o1
->
DeviceNameOffset
),
o1
->
DeviceNameLength
/
sizeof
(
WCHAR
)));
if
(
!
strncmpW
(
p
,
volumeW
,
(
sizeof
(
volumeW
)
-
1
)
/
sizeof
(
WCHAR
)
))
if
(
!
strncmpW
(
p
,
volumeW
,
sizeof
(
volumeW
)
/
sizeof
(
WCHAR
)
))
{
/* is there space in the return variable ?? */
if
((
o1
->
SymbolicLinkNameLength
/
sizeof
(
WCHAR
))
+
2
>
size
)
...
...
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