Index: ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc |
diff --git a/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc b/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc |
index bcf636254aa907ded1866aa8ca97aca6ee42fc4a..77eeba3df5c69914eab70e4448e1709b1602a700 100644 |
--- a/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc |
+++ b/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc |
@@ -327,8 +327,8 @@ int32_t PnaclCoordinator::GetLoadedFileDesc(int32_t pp_error, |
NACL_PRId32", url=%s, component=%s)\n", pp_error, |
url.c_str(), component.c_str())); |
ErrorInfo error_info; |
- int32_t file_desc_ok_to_close = plugin_->GetPOSIXFileDesc(url); |
- if (pp_error != PP_OK || file_desc_ok_to_close == NACL_NO_FILE_DESC) { |
+ struct NaClFileInfo info = plugin_->GetFileInfo(url); |
+ if (pp_error != PP_OK || info.desc == NACL_NO_FILE_DESC) { |
if (pp_error == PP_ERROR_ABORTED) { |
plugin_->ReportLoadAbort(); |
} else { |
@@ -338,7 +338,7 @@ int32_t PnaclCoordinator::GetLoadedFileDesc(int32_t pp_error, |
} |
return NACL_NO_FILE_DESC; |
} |
- return file_desc_ok_to_close; |
+ return info.desc; |
} |
PnaclCoordinator::PnaclCoordinator( |