* fhandler_raw.cc (fhandler_dev_raw::open): Replace set_errno()
by __seterrno_from_win_error(). * security.cc (open_local_policy): Ditto. (get_lsa_srv_inf): Ditto. (get_user_groups): Ditto. (get_user_primary_group): Ditto. (create_token): Ditto. (subauth): Ditto.
This commit is contained in:
@ -171,8 +171,7 @@ fhandler_dev_raw::open (path_conv *real_path, int flags, mode_t)
|
||||
FILE_SYNCHRONOUS_IO_NONALERT);
|
||||
if (!NT_SUCCESS (status))
|
||||
{
|
||||
set_errno (RtlNtStatusToDosError (status));
|
||||
debug_printf ("NtOpenFile: NTSTATUS: %d, Win32: %E", status);
|
||||
__seterrno_from_win_error (RtlNtStatusToDosError (status));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user