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
960b5996
Commit
960b5996
authored
Nov 28, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 28, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Limit displayed volume label length to 32.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1c86f979
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
shfldr_mycomp.c
dlls/shell32/shfldr_mycomp.c
+3
-6
No files found.
dlls/shell32/shfldr_mycomp.c
View file @
960b5996
...
...
@@ -695,15 +695,12 @@ static HRESULT WINAPI ISF_MyComputer_fnGetDisplayNameOf (IShellFolder2 *iface,
/* long view "lw_name (C:)" */
if
(
!
(
dwFlags
&
SHGDN_FORPARSING
))
{
DWORD
dwVolumeSerialNumber
,
dwMaximumComponetLength
,
dwFileSystemFlags
;
WCHAR
wszDrive
[
18
]
=
{
0
};
static
const
WCHAR
wszOpenBracket
[]
=
{
' '
,
'('
,
0
};
static
const
WCHAR
wszCloseBracket
[]
=
{
')'
,
0
};
WCHAR
wszDrive
[
32
/* label */
+
6
/* ' (C:)'\0 */
]
=
{
0
};
GetVolumeInformationW
(
pszPath
,
wszDrive
,
sizeof
(
wszDrive
)
/
sizeof
(
wszDrive
[
0
])
-
6
,
&
dwVolumeSerialNumber
,
&
dwMaximumComponetLength
,
&
dwFileSystemFlags
,
NULL
,
0
);
GetVolumeInformationW
(
pszPath
,
wszDrive
,
sizeof
(
wszDrive
)
/
sizeof
(
wszDrive
[
0
])
-
5
,
NULL
,
NULL
,
NULL
,
NULL
,
0
);
strcatW
(
wszDrive
,
wszOpenBracket
);
lstrcpynW
(
wszDrive
+
strlenW
(
wszDrive
),
pszPath
,
3
);
strcatW
(
wszDrive
,
wszCloseBracket
);
...
...
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