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
0d750e32
Commit
0d750e32
authored
Jun 28, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Jun 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix shelllink creation to non-executable files and remove unnecessary code.
parent
24064853
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
19 deletions
+2
-19
shelllink.c
dlls/shell32/shelllink.c
+1
-18
shelllink.c
dlls/shell32/tests/shelllink.c
+1
-1
No files found.
dlls/shell32/shelllink.c
View file @
0d750e32
...
@@ -1048,10 +1048,7 @@ static HRESULT WINAPI IPersistStream_fnSave(
...
@@ -1048,10 +1048,7 @@ static HRESULT WINAPI IPersistStream_fnSave(
IStream
*
stm
,
IStream
*
stm
,
BOOL
fClearDirty
)
BOOL
fClearDirty
)
{
{
static
const
WCHAR
wOpen
[]
=
{
'o'
,
'p'
,
'e'
,
'n'
,
0
};
LINK_HEADER
header
;
LINK_HEADER
header
;
WCHAR
exePath
[
MAX_PATH
];
ULONG
count
;
ULONG
count
;
DWORD
zero
;
DWORD
zero
;
HRESULT
r
;
HRESULT
r
;
...
@@ -1060,20 +1057,6 @@ static HRESULT WINAPI IPersistStream_fnSave(
...
@@ -1060,20 +1057,6 @@ static HRESULT WINAPI IPersistStream_fnSave(
TRACE
(
"%p %p %x
\n
"
,
This
,
stm
,
fClearDirty
);
TRACE
(
"%p %p %x
\n
"
,
This
,
stm
,
fClearDirty
);
*
exePath
=
'\0'
;
if
(
This
->
sPath
)
{
SHELL_FindExecutable
(
NULL
,
This
->
sPath
,
wOpen
,
exePath
,
MAX_PATH
,
NULL
,
NULL
,
NULL
,
NULL
);
/*
* windows can create lnk files to executables that do not exist yet
* so if the executable does not exist the just trust the path they
* gave us
*/
if
(
!*
exePath
)
lstrcpyW
(
exePath
,
This
->
sPath
);
}
memset
(
&
header
,
0
,
sizeof
(
header
));
memset
(
&
header
,
0
,
sizeof
(
header
));
header
.
dwSize
=
sizeof
(
header
);
header
.
dwSize
=
sizeof
(
header
);
header
.
fStartup
=
This
->
iShowCmd
;
header
.
fStartup
=
This
->
iShowCmd
;
...
@@ -1125,7 +1108,7 @@ static HRESULT WINAPI IPersistStream_fnSave(
...
@@ -1125,7 +1108,7 @@ static HRESULT WINAPI IPersistStream_fnSave(
}
}
if
(
This
->
sPath
)
if
(
This
->
sPath
)
Stream_WriteLocationInfo
(
stm
,
exe
Path
,
&
This
->
volume
);
Stream_WriteLocationInfo
(
stm
,
This
->
s
Path
,
&
This
->
volume
);
if
(
This
->
sDescription
)
if
(
This
->
sDescription
)
r
=
Stream_WriteString
(
stm
,
This
->
sDescription
);
r
=
Stream_WriteString
(
stm
,
This
->
sDescription
);
...
...
dlls/shell32/tests/shelllink.c
View file @
0d750e32
...
@@ -586,7 +586,7 @@ static void test_load_save(void)
...
@@ -586,7 +586,7 @@ static void test_load_save(void)
desc
.
icon_id
=
0
;
desc
.
icon_id
=
0
;
desc
.
hotkey
=
0x1234
;
desc
.
hotkey
=
0x1234
;
create_lnk
(
lnkfile
,
&
desc
,
0
);
create_lnk
(
lnkfile
,
&
desc
,
0
);
check_lnk
(
lnkfile
,
&
desc
,
0x
4
);
check_lnk
(
lnkfile
,
&
desc
,
0x
0
);
r
=
DeleteFileA
(
mypath
);
r
=
DeleteFileA
(
mypath
);
ok
(
r
,
"failed to delete file %s (%d)
\n
"
,
mypath
,
GetLastError
());
ok
(
r
,
"failed to delete file %s (%d)
\n
"
,
mypath
,
GetLastError
());
...
...
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