DeleteFile() failes on locked files => do the unlocking
commit0d1b39dd394760cfb4263072d9e33f577c8f1c56
authormazze <mazze@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sun, 5 Jan 2014 14:19:54 +0000 (5 14:19 +0000)
committermazze <mazze@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sun, 5 Jan 2014 14:19:54 +0000 (5 14:19 +0000)
tree15bed41b488a52fa3392976b77219b44bb85890d
parentb4fbb99659dafe610b77bf7652999e5e53043684
DeleteFile() failes on locked files => do the unlocking
directly after ParentDir().
Unlocking resets the error code => remember error code
before unlocking and reset it.

That should fix the problem which was reported here:
http://aros-exec.org/modules/newbb/viewtopic.php?post_id=85783#forumpost85783

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@48682 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
workbench/libs/icon/deletediskobject.c