Setting last error if base::File created with bad flags.
If base::File was constructed with incorrect arguments such that there was no disposition then a caller to Window's ::GetLastError() could retrieve ERROR_SUCCESS, and also base::File::error_details() would return Error::FILE_OK. This fixes this, and is also consistent with the POSIX version of base::File. Bug: None Change-Id: Ief0e1de98f132cff28c12ab076f9b18deeaa97b3 Reviewed-on: https://chromium-review.googlesource.com/802190 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by:Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#520975}
Showing
Please register or sign in to comment