s/open/create/

This commit is contained in:
Corinna Vinschen 2008-03-06 10:01:33 +00:00
parent 8a889eff57
commit 9ab254e09b
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ fhandler_base::open (int flags, mode_t mode)
create_disposition, create_options, NULL, 0); create_disposition, create_options, NULL, 0);
if (!NT_SUCCESS (status)) if (!NT_SUCCESS (status))
{ {
/* Trying to open a directory should return EISDIR, not ENOENT. */ /* Trying to create a directory should return EISDIR, not ENOENT. */
PUNICODE_STRING upath = pc.get_nt_native_path (); PUNICODE_STRING upath = pc.get_nt_native_path ();
if (status == STATUS_OBJECT_NAME_INVALID if (status == STATUS_OBJECT_NAME_INVALID
&& upath->Buffer[upath->Length / sizeof (WCHAR) - 1] == '\\') && upath->Buffer[upath->Length / sizeof (WCHAR) - 1] == '\\')