wineboot: Don't print an error when failing to delete a file.
This commit is contained in:
parent
f054431c63
commit
849ea3d651
|
@ -545,21 +545,7 @@ static BOOL pendingRename(void)
|
|||
} else
|
||||
{
|
||||
/* Delete the file or directory */
|
||||
if( (res=GetFileAttributesW(src))!=INVALID_FILE_ATTRIBUTES )
|
||||
{
|
||||
if( (res&FILE_ATTRIBUTE_DIRECTORY)==0 )
|
||||
{
|
||||
/* It's a file */
|
||||
DeleteFileW(src);
|
||||
} else
|
||||
{
|
||||
/* It's a directory */
|
||||
RemoveDirectoryW(src);
|
||||
}
|
||||
} else
|
||||
{
|
||||
WINE_ERR("couldn't get file attributes (%d)\n", GetLastError() );
|
||||
}
|
||||
if (!RemoveDirectoryW( src ) && GetLastError() == ERROR_DIRECTORY) DeleteFileW( src );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue