Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: src/shared/platform/win/nacl_host_desc.c

Issue 195393003: Enable syscall_test on windows. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/shared/platform/win/nacl_host_dir_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/platform/win/nacl_host_desc.c
diff --git a/src/shared/platform/win/nacl_host_desc.c b/src/shared/platform/win/nacl_host_desc.c
index f9eaa46edb1b88b51b1f91e56e88de20f0a164fe..19be699c009ef02023cf79d21029e5363a3161e6 100644
--- a/src/shared/platform/win/nacl_host_desc.c
+++ b/src/shared/platform/win/nacl_host_desc.c
@@ -1339,8 +1339,8 @@ int NaClHostDescIsatty(struct NaClHostDesc *d) {
NaClHostDescCheckValidity("NaClHostDescIsatty", d);
retval = _isatty(d->d);
- /* When _isatty fails it returns zero and sets errno. */
- return (0 == retval) ? -NaClXlateErrno(errno) : 1;
+ /* When windows _isatty fails it returns zero, but does not set errno. */
+ return (0 == retval) ? -NACL_ABI_ENOTTY : 1;
}
int NaClHostDescClose(struct NaClHostDesc *d) {
« no previous file with comments | « no previous file | src/shared/platform/win/nacl_host_dir_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698