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
40179bed
Commit
40179bed
authored
Nov 22, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Avoid hardcoding array lengths.
parent
c55db752
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
shelllink.c
dlls/shell32/shelllink.c
+1
-1
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+1
-1
No files found.
dlls/shell32/shelllink.c
View file @
40179bed
...
...
@@ -2115,7 +2115,7 @@ static HRESULT ShellLink_SetAdvertiseInfo(IShellLinkImpl *This, LPCWSTR str)
static
BOOL
ShellLink_GetVolumeInfo
(
LPCWSTR
path
,
volume_info
*
volume
)
{
const
int
label_sz
=
sizeof
volume
->
label
/
sizeof
volume
->
label
[
0
];
WCHAR
drive
[
4
]
=
{
path
[
0
],
':'
,
'\\'
,
0
};
WCHAR
drive
[]
=
{
path
[
0
],
':'
,
'\\'
,
0
};
BOOL
r
;
volume
->
type
=
GetDriveTypeW
(
drive
);
...
...
dlls/shell32/shfldr_unixfs.c
View file @
40179bed
...
...
@@ -1609,7 +1609,7 @@ static HRESULT WINAPI UnixFolder_IPersistFolder3_Initialize(IPersistFolder3* ifa
if
(
current
->
mkid
.
cb
)
{
if
(
_ILIsDrive
(
current
))
{
WCHAR
wszDrive
[
4
]
=
{
'?'
,
':'
,
'\\'
,
0
};
WCHAR
wszDrive
[]
=
{
'?'
,
':'
,
'\\'
,
0
};
wszDrive
[
0
]
=
(
WCHAR
)
*
_ILGetTextPointer
(
current
);
if
(
!
UNIXFS_get_unix_path
(
wszDrive
,
szBasePath
))
return
E_FAIL
;
...
...
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