mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Merge of Wine commit:
Martin Fuchs <martin-fuchs@gmx.net> Implementation of IPersistFile::IsDirty(). svn path=/trunk/; revision=8885
This commit is contained in:
parent
796ec35113
commit
9b62efc1ca
1 changed files with 5 additions and 0 deletions
|
@ -241,6 +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 = TRUE;
|
||||
}
|
||||
|
||||
return r;
|
||||
|
@ -297,7 +298,11 @@ static HRESULT WINAPI IPersistFile_fnSave(IPersistFile* iface, LPCOLESTR pszFile
|
|||
IStream_Release( stm );
|
||||
|
||||
if( SUCCEEDED( r ) )
|
||||
{
|
||||
StartLinkProcessor( pszFileName );
|
||||
|
||||
This->bDirty = FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
DeleteFileW( pszFileName );
|
||||
|
|
Loading…
Reference in a new issue