Correct Lock() parameter

This commit is contained in:
Chris Young 2014-09-29 19:01:25 +01:00
parent f58a2580e0
commit 49fd5ea238
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ static nserror amiga_path_to_nsurl(const char *path, struct nsurl **url_out)
BPTR lock = 0;
nserror ret;
if(lock = Lock(path, MODE_OLDFILE))
if(lock = Lock(path, SHARED_LOCK))
{
DevNameFromLock(lock, newpath, sizeof newpath, DN_FULLPATH);
UnLock(lock);