Merge of Wine commit:

Martin Fuchs <martin-fuchs@gmx.net>
	Implementation of IPersistFile::IsDirty().

svn path=/trunk/; revision=8885
This commit is contained in:
Martin Fuchs 2004-03-27 09:16:08 +00:00
parent 796ec35113
commit 9b62efc1ca

View file

@ -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 );