Commit a8745ea3 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexandre Julliard

Opening a file in a directory which doesn't exist returns

ERROR_FILE_NOT_FOUND instead of ERROR_PATH_NOT_FOUND.
parent 88065baf
...@@ -824,14 +824,14 @@ BOOL32 DOSFS_GetFullName( LPCSTR name, BOOL32 check_last, DOS_FULL_NAME *full ) ...@@ -824,14 +824,14 @@ BOOL32 DOSFS_GetFullName( LPCSTR name, BOOL32 check_last, DOS_FULL_NAME *full )
if (!found) if (!found)
{ {
if (check_last) if (*name) /* Not last */
{ {
DOS_ERROR( ER_FileNotFound, EC_NotFound, SA_Abort, EL_Disk ); DOS_ERROR( ER_PathNotFound, EC_NotFound, SA_Abort, EL_Disk );
return FALSE; return FALSE;
} }
if (*name) /* Not last */ if (check_last)
{ {
DOS_ERROR( ER_PathNotFound, EC_NotFound, SA_Abort, EL_Disk ); DOS_ERROR( ER_FileNotFound, EC_NotFound, SA_Abort, EL_Disk );
return FALSE; return FALSE;
} }
} }
......
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