Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / native_client_sdk / src / libraries / ppapi_simple / ps_main.cc
index 8ab1213..f9b8147 100644 (file)
@@ -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)
+    return rtn;
+  rtn = PSUserMainGet()(argc, argv);
   nacl_io_uninit();
   return rtn;
 }