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
4dda7c63
Commit
4dda7c63
authored
Nov 12, 2007
by
Lei Zhang
Committed by
Alexandre Julliard
Nov 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Don't crash if $HOME is not set.
parent
70c75dcd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
shellpath.c
dlls/shell32/shellpath.c
+5
-2
No files found.
dlls/shell32/shellpath.c
View file @
4dda7c63
...
@@ -2065,8 +2065,6 @@ static void _SHCreateSymbolicLinks(void)
...
@@ -2065,8 +2065,6 @@ static void _SHCreateSymbolicLinks(void)
}
}
}
}
HeapFree
(
GetProcessHeap
(),
0
,
pszPersonal
);
/* Create symbolic links for 'My Pictures', 'My Video' and 'My Music'. */
/* Create symbolic links for 'My Pictures', 'My Video' and 'My Music'. */
for
(
i
=
0
;
i
<
sizeof
(
aidsMyStuff
)
/
sizeof
(
aidsMyStuff
[
0
]);
i
++
)
{
for
(
i
=
0
;
i
<
sizeof
(
aidsMyStuff
)
/
sizeof
(
aidsMyStuff
[
0
]);
i
++
)
{
/* Create the current 'My Whatever' folder and get it's unix path. */
/* Create the current 'My Whatever' folder and get it's unix path. */
...
@@ -2094,7 +2092,12 @@ static void _SHCreateSymbolicLinks(void)
...
@@ -2094,7 +2092,12 @@ static void _SHCreateSymbolicLinks(void)
}
}
/* Last but not least, the Desktop folder */
/* Last but not least, the Desktop folder */
if
(
pszHome
)
strcpy
(
szDesktopTarget
,
pszHome
);
strcpy
(
szDesktopTarget
,
pszHome
);
else
strcpy
(
szDesktopTarget
,
pszPersonal
);
HeapFree
(
GetProcessHeap
(),
0
,
pszPersonal
);
if
(
_SHAppendToUnixPath
(
szDesktopTarget
,
DesktopW
)
&&
if
(
_SHAppendToUnixPath
(
szDesktopTarget
,
DesktopW
)
&&
!
stat
(
szDesktopTarget
,
&
statFolder
)
&&
S_ISDIR
(
statFolder
.
st_mode
))
!
stat
(
szDesktopTarget
,
&
statFolder
)
&&
S_ISDIR
(
statFolder
.
st_mode
))
{
{
...
...
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