| Index: ppapi/native_client/src/trusted/plugin/service_runtime.cc
|
| diff --git a/ppapi/native_client/src/trusted/plugin/service_runtime.cc b/ppapi/native_client/src/trusted/plugin/service_runtime.cc
|
| index 6a7b9b52ffb641575b63ad3c861e48dc0507c50e..75ccb1c2a8b94c83863075a56d50ac69d31cdefd 100644
|
| --- a/ppapi/native_client/src/trusted/plugin/service_runtime.cc
|
| +++ b/ppapi/native_client/src/trusted/plugin/service_runtime.cc
|
| @@ -574,8 +574,13 @@ bool ServiceRuntime::StartModule() {
|
| }
|
|
|
| NaClLog(4, "ServiceRuntime::StartModule (load_status=%d)\n", load_status);
|
| - if (main_service_runtime_)
|
| - plugin_->ReportSelLdrLoadStatus(load_status);
|
| + if (main_service_runtime_) {
|
| + if (load_status < 0 || load_status > NACL_ERROR_CODE_MAX)
|
| + load_status = LOAD_STATUS_UNKNOWN;
|
| + GetNaClInterface()->ReportSelLdrStatus(plugin_->pp_instance(),
|
| + load_status,
|
| + NACL_ERROR_CODE_MAX);
|
| + }
|
|
|
| if (LOAD_OK != load_status) {
|
| if (main_service_runtime_) {
|
|
|