[Wine-patches] [eterhack eter-2.0.0] ntdll: Print an error if we cannot open a file because of insufficient access rights (eterbug #8491).
Alexander Morozov
amorozov на etersoft.ru
Пт Май 25 19:21:38 MSK 2012
---
dlls/ntdll/file.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index a30f406..9036f7c 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -214,6 +214,8 @@ static NTSTATUS FILE_CreateFile( PHANDLE handle, ACCESS_MASK access, POBJECT_ATT
static int once;
if (!once++) ERR_(winediag)( "Too many open files, ulimit -n probably needs to be increased\n" );
}
+ else if (io->u.Status == STATUS_ACCESS_DENIED)
+ ERR_(winediag)( "failed to open %s because of insufficient access rights\n", debugstr_us(attr->ObjectName) );
return io->u.Status;
}
--
1.7.9.7
Подробная информация о списке рассылки Wine-patches