| Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.cc
|
| diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.cc b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.cc
|
| index b642eb0c3d7d1dea3a685d814990cf965bf9ff34..d9700dacbadde5ee73a81cfc6e173a21fc0fa78f 100644
|
| --- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.cc
|
| +++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.cc
|
| @@ -118,6 +118,8 @@ void* Map(PP_Var var) {
|
| PluginVar::DebugString(var).c_str());
|
| SharedArrayBufferProxyVar buffer_var = ArrayBufferProxyVar::CastFromProxyVar(
|
| ProxyVarCache::GetInstance().SharedProxyVarForVar(var));
|
| + if (!buffer_var)
|
| + return NULL;
|
| void* data = buffer_var->buffer();
|
| DebugPrintf("PPB_VarArrayBuffer::Map: buffer=%p\n", data);
|
| return data;
|
| @@ -151,8 +153,8 @@ const PPB_Var_1_0* PluginVar::GetInterface1_0() {
|
| return &var_interface;
|
| }
|
|
|
| -const PPB_VarArrayBuffer_Dev* PluginVar::GetArrayBufferInterface() {
|
| - static const PPB_VarArrayBuffer_Dev interface = {
|
| +const PPB_VarArrayBuffer* PluginVar::GetArrayBufferInterface() {
|
| + static const PPB_VarArrayBuffer interface = {
|
| CreateArrayBuffer,
|
| ByteLength,
|
| Map,
|
|
|