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
2eab8afa
Commit
2eab8afa
authored
May 06, 2003
by
Robert Lunnon
Committed by
Alexandre Julliard
May 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminate segfault due to NULL This->sIcoPath.
parent
23f57895
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
shelllink.c
dlls/shell32/shelllink.c
+1
-1
No files found.
dlls/shell32/shelllink.c
View file @
2eab8afa
...
...
@@ -697,7 +697,7 @@ static HRESULT WINAPI IPersistFile_fnSave(IPersistFile* iface, LPCOLESTR pszFile
}
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
MAX_PATH
*
3
+
(
This
->
sArgs
?
strlen
(
This
->
sArgs
)
:
0
)
+
(
This
->
sDescription
?
strlen
(
This
->
sDescription
)
:
0
)
+
200
);
sprintf
(
buffer
,
"link:%s
\xff
*%s
\xff
%d
\xff
%s
\xff
%s
\xff
%s"
,
This
->
sPath
,
This
->
sIcoPath
,
This
->
iIcoNdx
,
sprintf
(
buffer
,
"link:%s
\xff
*%s
\xff
%d
\xff
%s
\xff
%s
\xff
%s"
,
This
->
sPath
,
This
->
sIcoPath
?
This
->
sIcoPath
:
""
,
This
->
iIcoNdx
,
This
->
sArgs
?
This
->
sArgs
:
""
,
This
->
sDescription
?
This
->
sDescription
:
""
,
This
->
sWorkDir
?
This
->
sWorkDir
:
""
);
if
(
RegSetValueExA
(
hRunOnce
,
ascii_filename
,
0
,
REG_SZ
,
buffer
,
strlen
(
buffer
)
+
1
)
!=
ERROR_SUCCESS
)
...
...
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