On 2018-07-24, Richard Owlett <rowl...@cloud85.net> wrote:
>
> I was vainly attempting to determine that what I saw on my console was a 
> WINE or an APPLICATION error message.
>

Looks like it's coming from wine.

https://github.com/wine-mirror/wine/blob/master/dlls/shell32/trash.c

static BOOL TRASH_MoveFileToBucket(TRASH_BUCKET *pBucket, const char *unix_path)
{
    struct stat file_stat;
    char *trash_file_name = NULL;
    char *trash_path = NULL;
    BOOL ret = TRUE;

    if (lstat(unix_path, &file_stat)==-1)
        return FALSE;
    if (!file_good_for_bucket(pBucket, &file_stat))
        return FALSE;
        
    trash_file_name = create_trashinfo(pBucket->info_dir, unix_path);
    if (trash_file_name == NULL)
        return FALSE;
        
    trash_path = SHAlloc(strlen(pBucket->files_dir)+strlen(trash_file_name)+1);
    if (trash_path == NULL) goto error;
    lstrcpyA(trash_path, pBucket->files_dir);
    lstrcatA(trash_path, trash_file_name);
    
    if (rename(unix_path, trash_path)==0)
    {
        TRACE("rename succeeded\n");
        goto cleanup;
    }
    
    /* TODO: try to manually move the file */
ERR("Couldn't move file\n");
    **********************

-- 
Boris sober and Boris drunk are such different people, they’ve never even met. 
-- Sergei Dovlatov, Pushkin Hills

Reply via email to