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
b44f8253
Commit
b44f8253
authored
Apr 05, 2004
by
Martin Fuchs
Committed by
Alexandre Julliard
Apr 05, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fix dirty flag on shelllink loading and saving
- update absolute path when changing relative path
parent
54985317
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
shelllink.c
dlls/shell32/shelllink.c
+4
-4
No files found.
dlls/shell32/shelllink.c
View file @
b44f8253
...
...
@@ -241,7 +241,7 @@ static HRESULT WINAPI IPersistFile_fnLoad(IPersistFile* iface, LPCOLESTR pszFile
r
=
IPersistStream_Load
(
StreamThis
,
stm
);
ShellLink_UpdatePath
(
This
->
sPathRel
,
pszFileName
,
This
->
sWorkDir
,
&
This
->
sPath
);
IStream_Release
(
stm
);
This
->
bDirty
=
TRU
E
;
This
->
bDirty
=
FALS
E
;
}
return
r
;
...
...
@@ -301,7 +301,7 @@ static HRESULT WINAPI IPersistFile_fnSave(IPersistFile* iface, LPCOLESTR pszFile
{
StartLinkProcessor
(
pszFileName
);
This
->
bDirty
=
TRU
E
;
This
->
bDirty
=
FALS
E
;
}
else
{
...
...
@@ -1240,7 +1240,7 @@ static HRESULT WINAPI IShellLinkA_fnSetRelativePath(IShellLinkA * iface, LPCSTR
This
->
sPathRel
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
pszPathRel
);
This
->
bDirty
=
TRUE
;
return
S
_OK
;
return
S
hellLink_UpdatePath
(
This
->
sPathRel
,
This
->
sPath
,
This
->
sWorkDir
,
&
This
->
sPath
)
;
}
static
HRESULT
WINAPI
IShellLinkA_fnResolve
(
IShellLinkA
*
iface
,
HWND
hwnd
,
DWORD
fFlags
)
...
...
@@ -1569,7 +1569,7 @@ static HRESULT WINAPI IShellLinkW_fnSetRelativePath(IShellLinkW * iface, LPCWSTR
lstrcpyW
(
This
->
sPathRel
,
pszPathRel
);
This
->
bDirty
=
TRUE
;
return
S
_OK
;
return
S
hellLink_UpdatePath
(
This
->
sPathRel
,
This
->
sPath
,
This
->
sWorkDir
,
&
This
->
sPath
)
;
}
static
HRESULT
WINAPI
IShellLinkW_fnResolve
(
IShellLinkW
*
iface
,
HWND
hwnd
,
DWORD
fFlags
)
...
...
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