fixing open a file as a directory
we should map this failure to STATUS_NOT_A_DIRECTORY notepad.exe had been known to do this
This commit is contained in:
parent
1a00a0bdce
commit
d1a05c810e
2 changed files with 2 additions and 1 deletions
|
|
@ -507,7 +507,7 @@ static int handle_open(nfs41_upcall *upcall)
|
|||
eprintf("trying to open file %s as a directory\n",
|
||||
state->path.path);
|
||||
#ifdef NOTEPAD_OPEN_FILE_AS_DIRFILE_FIXED
|
||||
status = ERROR_ACCESS_DENIED;
|
||||
status = ERROR_BAD_FILE_TYPE;
|
||||
goto out_free_state;
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue