Commit 849ea3d6 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent f054431c
...@@ -545,21 +545,7 @@ static BOOL pendingRename(void) ...@@ -545,21 +545,7 @@ static BOOL pendingRename(void)
} else } else
{ {
/* Delete the file or directory */ /* Delete the file or directory */
if( (res=GetFileAttributesW(src))!=INVALID_FILE_ATTRIBUTES ) if (!RemoveDirectoryW( src ) && GetLastError() == ERROR_DIRECTORY) DeleteFileW( src );
{
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() );
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment