wineboot: Don't print an error when failing to delete a file.

This commit is contained in:
Alexandre Julliard 2013-06-11 13:50:05 +02:00
parent f054431c63
commit 849ea3d651
1 changed files with 1 additions and 15 deletions

View File

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