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

Unified Diff: native_client_sdk/src/libraries/ppapi_simple/ps_main.cc

Issue 635113002: [NaCl SDK] nacl_io: Fix real_node when dealing with a windows terminal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
Index: native_client_sdk/src/libraries/ppapi_simple/ps_main.cc
diff --git a/native_client_sdk/src/libraries/ppapi_simple/ps_main.cc b/native_client_sdk/src/libraries/ppapi_simple/ps_main.cc
index 8ab1213e53ce9b5a75fa32b74e1be864f69f8290..f9b8147be481fc409978fb118806898551f32954 100644
--- a/native_client_sdk/src/libraries/ppapi_simple/ps_main.cc
+++ b/native_client_sdk/src/libraries/ppapi_simple/ps_main.cc
@@ -42,8 +42,10 @@ int main(int argc, char* argv[]) {
#endif
// By default, or if not running in the browser we simply run the main
// entry point directly, on the main thread.
- nacl_io_init();
- int rtn = PSUserMainGet()(argc, argv);
+ int rtn = nacl_io_init();
+ if (rtn != 0)
binji 2014/10/08 01:26:13 Explicit ppapi_simple failure message here?
Sam Clegg 2014/10/08 02:01:02 Using what mechanism. If nacl_io init fails is th
binji 2014/10/08 18:22:24 I was thinking a direct write to stderr. Does nacl
+ return rtn;
+ rtn = PSUserMainGet()(argc, argv);
nacl_io_uninit();
return rtn;
}

Powered by Google App Engine
This is Rietveld 408576698